38#define RSORT(num) ((SortAlias & SORT_REVERSE) ? -num : num)
74 const struct AddressList *al_a = &av_a->
alias->
addr;
75 const struct AddressList *al_b = &av_b->
alias->
addr;
107 else if (addr_b && addr_b->
personal)
111 else if (addr_a && addr_b)
180 avp->
num = ARRAY_FOREACH_IDX;
static short SortAlias
Current value of $sort_alias used by the sorting functions.
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)
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.
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)
Compare two Aliases by their original configuration position - Implements sort_t -.
static int alias_sort_name(const void *a, const void *b)
Compare two Aliases by their short names - Implements sort_t -.
static int alias_sort_address(const void *a, const void *b)
Compare two Aliases by their Addresses - 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.
#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.
Assorted sorting methods.
int(* sort_t)(const void *a, const void *b)
char * mailbox
Mailbox and host address.
char * personal
Real name of 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.