25#ifndef MUTT_EMAIL_SORT_H
26#define MUTT_EMAIL_SORT_H
Convenience wrapper for the core headers.
MailboxType
Supported mailbox formats.
int(* sort_email_t)(const struct Email *a, const struct Email *b, bool reverse)
const char * mutt_get_name(const struct Address *a)
Pick the best name to display from an address.
void mutt_sort_headers(struct MailboxView *mv, bool init)
Sort emails by their headers.
void mutt_sort_unsorted(struct Mailbox *m)
Sort emails by their disk order.
EmailSortType
Methods for sorting Emails.
@ EMAIL_SORT_LABEL
Sort by the emails label.
@ EMAIL_SORT_DATE_RECEIVED
Sort by when the message were delivered locally.
@ EMAIL_SORT_SPAM
Sort by the email's spam score.
@ EMAIL_SORT_SCORE
Sort by the email's score.
@ EMAIL_SORT_DATE
Sort by the date the email was sent.
@ EMAIL_SORT_THREADS
Sort by email threads.
@ EMAIL_SORT_SUBJECT
Sort by the email's subject.
@ EMAIL_SORT_FROM
Sort by the email's From field.
@ EMAIL_SORT_UNSORTED
Sort by the order the messages appear in the mailbox.
@ EMAIL_SORT_SIZE
Sort by the size of the email.
@ EMAIL_SORT_TO
Sort by the email's To field.
int mutt_compare_emails(const struct Email *a, const struct Email *b, enum MailboxType type, short sort, short sort_aux)
Compare two emails using up to two sort methods -.
The envelope/body of an email.