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->
mailbox)
110 else if (addr_a && addr_b)
120 return sort_reverse ? -rc : rc;
132 const bool sort_reverse = *(
bool *) sdata;
134 const struct AddressList *al_a = &av_a->
alias->
addr;
135 const struct AddressList *al_b = &av_b->
alias->
addr;
167 else if (addr_b && addr_b->
personal)
171 else if (addr_a && addr_b)
181 return sort_reverse ? -rc : rc;
193 const bool sort_reverse = *(
bool *) sdata;
202 return sort_reverse ? -rc : rc;
256 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.
@ ALIAS_SORT_UNSORTED
Sort by the order the Aliases were configured.
@ ALIAS_SORT_NAME
Sort by Real Name.
@ ALIAS_SORT_EMAIL
Sort by Email Address.
@ ALIAS_SORT_ALIAS
Sort by Alias short name.
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.
#define ARRAY_GET(head, idx)
Return the element at index.
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.
#define SORT_MASK
Mask for the sort id.
#define mutt_numeric_cmp(a, b)
#define SORT_REVERSE
Reverse the order of the sort.
static int alias_sort_unsorted(const void *a, const void *b, void *sdata)
Compare two Aliases by their original configuration position - Implements sort_t -.
static int alias_sort_email(const void *a, const void *b, void *sdata)
Compare two Aliases by their Email Addresses - Implements sort_t -.
static int alias_sort_alias(const void *a, const void *b, void *sdata)
Compare two Aliases by their short names - Implements sort_t -.
static int alias_sort_name(const void *a, const void *b, void *sdata)
Compare two Aliases by their 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)
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.
A shortcut for an email address or addresses.
struct AddressList addr
List of Addresses the Alias expands to.
A set of inherited config items.