int mutt_addrlist_to_intl(struct AddressList *al, char **err)
Convert an Address list to Punycode.
Representation of a single alias to an email address.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
struct HashElem * mutt_hash_insert(struct HashTable *table, const char *strkey, void *data)
Add a new element to the Hash Table (with string keys)
void mutt_hash_delete(struct HashTable *table, const char *strkey, const void *data)
Remove an element from a Hash Table.
void * mutt_hash_find(const struct HashTable *table, const char *strkey)
Find the HashElem data in a Hash Table element using a key.
struct HashTable * mutt_hash_new(size_t num_elems, HashFlags flags)
Create a new Hash Table (with string keys)
void mutt_hash_free(struct HashTable **ptr)
Free a hash table.
#define MUTT_HASH_STRDUP_KEYS
make a copy of the keys
#define MUTT_HASH_ALLOW_DUPS
allow duplicate keys to be inserted
#define MUTT_HASH_STRCASECMP
use strcasecmp() to compare keys
Convenience wrapper for the library headers.
#define TAILQ_FOREACH(var, head, field)
static struct HashTable * ReverseAliases
Hash Table of aliases (email address -> alias)
void alias_reverse_add(struct Alias *alias)
Add an email address lookup for an Alias.
void alias_reverse_shutdown(void)
Clear up the Reverse Alias Hash Table.
struct Address * alias_reverse_lookup(const struct Address *addr)
Does the user have an alias for the given address.
void alias_reverse_delete(struct Alias *alias)
Remove an email address lookup for an Alias.
void alias_reverse_init(void)
Set up the Reverse Alias Hash Table.
Manage alias reverse lookups.
struct Buffer * mailbox
Mailbox and host address.
A shortcut for an email address or addresses.
struct AddressList addr
List of Addresses the Alias expands to.