Prototype for an email comparison function. More...
Functions | |
int | nntp_compare_order (const struct Email *a, const struct Email *b, bool reverse) |
Sort to mailbox order - Implements sort_mail_t -. More... | |
static int | compare_score (const struct Email *a, const struct Email *b, bool reverse) |
Compare two emails using their scores - Implements sort_mail_t -. More... | |
static int | compare_size (const struct Email *a, const struct Email *b, bool reverse) |
Compare the size of two emails - Implements sort_mail_t -. More... | |
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 -. More... | |
static int | compare_subject (const struct Email *a, const struct Email *b, bool reverse) |
Compare the subject of two emails - Implements sort_mail_t -. More... | |
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 -. More... | |
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 -. More... | |
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 -. More... | |
static int | compare_order (const struct Email *a, const struct Email *b, bool reverse) |
Restore the 'unsorted' order of emails - Implements sort_mail_t -. More... | |
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 -. More... | |
static int | compare_label (const struct Email *a, const struct Email *b, bool reverse) |
Compare the labels of two emails - Implements sort_mail_t -. More... | |
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 |
Sort to mailbox order - Implements sort_mail_t -.
Definition at line 2313 of file nntp.c.
Compare two emails using their scores - Implements sort_mail_t -.
Definition at line 81 of file sort.c.
Compare the size of two emails - Implements sort_mail_t -.
Definition at line 90 of file sort.c.
|
static |
Compare the sent date of two emails - Implements sort_mail_t -.
Definition at line 99 of file sort.c.
Compare the subject of two emails - Implements sort_mail_t -.
Definition at line 108 of file sort.c.
Compare the 'to' fields of two emails - Implements sort_mail_t -.
Definition at line 161 of file sort.c.
Compare the 'from' fields of two emails - Implements sort_mail_t -.
Definition at line 174 of file sort.c.
|
static |
Compare the date received of two emails - Implements sort_mail_t -.
Definition at line 187 of file sort.c.
Restore the 'unsorted' order of emails - Implements sort_mail_t -.
Definition at line 196 of file sort.c.
Compare the spam values of two emails - Implements sort_mail_t -.
Definition at line 205 of file sort.c.
Compare the labels of two emails - Implements sort_mail_t -.
Definition at line 254 of file sort.c.