50 const bool sort_reverse = *(
bool *) sdata;
58 return sort_reverse ? -rc : rc;
70 const bool sort_reverse = *(
bool *) sdata;
73 return sort_reverse ? -rc : rc;
85 const bool sort_reverse = *(
bool *) sdata;
93 return sort_reverse ? -rc : rc;
105 const bool sort_reverse = *(
bool *) sdata;
112 return sort_reverse ? -rc : rc;
124 const bool sort_reverse = *(
bool *) sdata;
132 return sort_reverse ? -rc : rc;
144 const bool sort_reverse = *(
bool *) sdata;
147 return sort_reverse ? -rc : rc;
#define ARRAY_SORT(head, fn, sdata)
Sort an array.
Convenience wrapper for the config headers.
#define SORT_MASK
Mask for the sort id.
#define mutt_numeric_cmp(a, b)
#define SORT_REVERSE
Reverse the order of the sort.
Convenience wrapper for the core headers.
static const char * mailbox_path(const struct Mailbox *m)
Get the Mailbox's path string.
Structs that make up an email.
EmailSortType
Methods for sorting Emails.
static int sb_sort_desc(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by description - Implements sort_t -.
static int sb_sort_unread(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by unread - Implements sort_t -.
int mutt_str_inbox_cmp(const char *a, const char *b)
Do two folders share the same path and one is an inbox -.
static int sb_sort_flagged(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by flagged - Implements sort_t -.
static int sb_sort_unsorted(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by order of creation - Implements sort_t -.
static int sb_sort_path(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by path - Implements sort_t -.
static int sb_sort_count(const void *a, const void *b, void *sdata)
Compare two Sidebar entries by count - Implements sort_t -.
Convenience wrapper for the library headers.
int mutt_str_cmp(const char *a, const char *b)
Compare two strings, safely.
int mutt_str_coll(const char *a, const char *b)
Collate two strings (compare using locale), safely.
int(* sort_t)(const void *a, const void *b, void *sdata)
int msg_count
Total number of messages.
char * name
A short name for the Mailbox.
int msg_flagged
Number of flagged messages.
int msg_unread
Number of unread messages.
int gen
Generation number, for sorting.
Info about folders in the sidebar.
struct Mailbox * mailbox
Mailbox this represents.