#define ARRAY_SORT(head, fn)
Sort an array.
void browser_sort(struct BrowserState *state)
Sort the entries in the browser.
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
bool OptNews
(pseudo) used to change reader mode
static int browser_compare_desc(const void *a, const void *b)
Compare the descriptions of two browser entries - Implements sort_t -.
static int browser_compare_count_new(const void *a, const void *b)
Compare the new count of two browser entries - Implements sort_t -.
static int browser_compare(const void *a, const void *b)
Sort the items in the browser - Implements sort_t -.
static int browser_compare_order(const void *a, const void *b)
Compare the order of creation of two browser entries - Implements sort_t -.
static int browser_compare_size(const void *a, const void *b)
Compare the size of two browser entries - Implements sort_t -.
static int browser_compare_count(const void *a, const void *b)
Compare the message count of two browser entries - Implements sort_t -.
static int browser_compare_date(const void *a, const void *b)
Compare the date of two browser entries - Implements sort_t -.
static int browser_compare_subject(const void *a, const void *b)
Compare the subject of two browser entries - Implements sort_t -.
Convenience wrapper for the library headers.
int mutt_str_coll(const char *a, const char *b)
Collate two strings (compare using locale), safely.
int mutt_inbox_cmp(const char *a, const char *b)
Do two folders share the same path and one is an inbox.
Some miscellaneous functions.
#define SORT_MASK
Mask for the sort id.
SortType
Methods for sorting.
@ SORT_SUBJECT
Sort by the email's subject.
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
@ SORT_SIZE
Sort by the size of the email.
@ SORT_DESC
Sort by the folder's description.
@ SORT_DATE
Sort by the date the email was sent.
@ SORT_COUNT
Sort by number of emails in a folder.
@ SORT_UNREAD
Sort by the number of unread emails.
#define SORT_REVERSE
Reverse the order of the sort.
State of the file/mailbox browser.
struct BrowserStateEntry entry
Array of files / dirs / mailboxes.
Browser entry representing a folder/dir.
bool has_mailbox
This is a mailbox.
char * name
Name of file/dir/mailbox.
char * desc
Description of mailbox.
int gen
Unique id, used for (un)sorting.
time_t mtime
Modification time.
int msg_count
total number of messages
int msg_unread
number of unread messages
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.