Prototype for an email comparison function. More...
Functions | |
int | nntp_compare_order (const struct Email *a, const struct Email *b, bool reverse) |
Restore the 'unsorted' order of emails - Implements sort_mail_t -. | |
static int | compare_score (const struct Email *a, const struct Email *b, bool reverse) |
Compare two emails using their scores - Implements sort_mail_t -. | |
static int | compare_size (const struct Email *a, const struct Email *b, bool reverse) |
Compare the size of two emails - Implements sort_mail_t -. | |
static int | compare_date_sent (const struct Email *a, const struct Email *b, bool reverse) |
Compare the sent date of two emails - Implements sort_mail_t -. | |
static int | compare_subject (const struct Email *a, const struct Email *b, bool reverse) |
Compare the subject of two emails - Implements sort_mail_t -. | |
static int | compare_to (const struct Email *a, const struct Email *b, bool reverse) |
Compare the 'to' fields of two emails - Implements sort_mail_t -. | |
static int | compare_from (const struct Email *a, const struct Email *b, bool reverse) |
Compare the 'from' fields of two emails - Implements sort_mail_t -. | |
static int | compare_date_received (const struct Email *a, const struct Email *b, bool reverse) |
Compare the date received of two emails - Implements sort_mail_t -. | |
static int | compare_order (const struct Email *a, const struct Email *b, bool reverse) |
Restore the 'unsorted' order of emails - Implements sort_mail_t -. | |
static int | compare_spam (const struct Email *a, const struct Email *b, bool reverse) |
Compare the spam values of two emails - Implements sort_mail_t -. | |
static int | compare_label (const struct Email *a, const struct Email *b, bool reverse) |
Compare the labels of two emails - Implements sort_mail_t -. | |
Prototype for an email comparison function.
a | First item |
b | Second item |
reverse | true if this is a reverse sort (smaller b precedes a) |
<0 | a precedes b |
0 | a and b are identical |
>0 | b precedes a |
Restore the 'unsorted' order of emails - Implements sort_mail_t -.
Definition at line 2356 of file nntp.c.
Compare two emails using their scores - Implements sort_mail_t -.
Definition at line 75 of file sort.c.
Compare the size of two emails - Implements sort_mail_t -.
Definition at line 84 of file sort.c.
|
static |
Compare the sent date of two emails - Implements sort_mail_t -.
Definition at line 93 of file sort.c.
Compare the subject of two emails - Implements sort_mail_t -.
Definition at line 102 of file sort.c.
Compare the 'to' fields of two emails - Implements sort_mail_t -.
Definition at line 155 of file sort.c.
Compare the 'from' fields of two emails - Implements sort_mail_t -.
Definition at line 168 of file sort.c.
|
static |
Compare the date received of two emails - Implements sort_mail_t -.
Definition at line 181 of file sort.c.
Restore the 'unsorted' order of emails - Implements sort_mail_t -.
Definition at line 190 of file sort.c.
Compare the spam values of two emails - Implements sort_mail_t -.
Definition at line 199 of file sort.c.
Compare the labels of two emails - Implements sort_mail_t -.
Definition at line 248 of file sort.c.