50 const bool sort_reverse = *(
bool *) sdata;
59 return sort_reverse ? -rc : rc;
71 const bool sort_reverse = *(
bool *) sdata;
73 const struct AddressList *al_a = &av_a->
alias->
addr;
74 const struct AddressList *al_b = &av_b->
alias->
addr;
106 else if (addr_b && addr_b->
personal)
110 else if (addr_a && addr_b)
120 return sort_reverse ? -rc : rc;
132 const bool sort_reverse = *(
bool *) sdata;
141 return sort_reverse ? -rc : rc;
180 avp->
num = ARRAY_FOREACH_IDX;
void alias_array_sort(struct AliasViewArray *ava, const struct ConfigSubset *sub)
Sort and reindex an AliasViewArray.
static sort_t alias_get_sort_function(short sort)
Sorting function decision logic.
Representation of a single alias to an email address.
#define ARRAY_SORT(head, fn, sdata)
Sort an array.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_EMPTY(head)
Check if an array is empty.
int buf_coll(const struct Buffer *a, const struct Buffer *b)
Collate two strings (compare using locale)
short cs_subset_sort(const struct ConfigSubset *sub, const char *name)
Get a sort config item by name.
Convenience wrapper for the config headers.
static int alias_sort_unsort(const void *a, const void *b, void *sdata)
Compare two Aliases by their original configuration position - Implements sort_t -.
static int alias_sort_address(const void *a, const void *b, void *sdata)
Compare two Aliases by their Addresses - Implements sort_t -.
static int alias_sort_name(const void *a, const void *b, void *sdata)
Compare two Aliases by their short names - Implements sort_t -.
Shared code for the Alias and Query Dialogs.
Convenience wrapper for the library headers.
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)
#define TAILQ_FIRST(head)
#define SORT_MASK
Mask for the sort id.
@ SORT_ORDER
Sort by the order the messages appear in the mailbox.
@ SORT_ALIAS
Sort by email alias.
@ SORT_ADDRESS
Sort by email address.
#define SORT_REVERSE
Reverse the order of the sort.
Assorted sorting methods.
#define mutt_numeric_cmp(a, b)
struct Buffer * personal
Real name of address.
struct Buffer * mailbox
Mailbox and host address.
GUI data wrapping an Alias.
bool is_visible
Is visible?
struct Alias * alias
Alias.
int num
Index number in list.
int orig_seq
Sequence in alias config file.
struct AddressList addr
List of Addresses the Alias expands to.
A set of inherited config items.