Go to the documentation of this file.
41 #ifndef MUTT_ALIAS_LIB_H
42 #define MUTT_ALIAS_LIB_H
53 struct AliasViewArray;
void alias_init(void)
Set up the Alias globals.
enum CommandResult parse_alias(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'alias' command - Implements Command::parse()
struct AddressList * mutt_get_address(struct Envelope *env, const char **prefix)
Get an Address from an Envelope.
void alias_array_sort(struct AliasViewArray *ava, const struct ConfigSubset *sub)
Sort and reindex an AliasViewArray.
String manipulation buffer.
void alias_create(struct AddressList *al, const struct ConfigSubset *sub)
Create a new Alias from an Address.
int query_complete(char *buf, size_t buflen, struct ConfigSubset *sub)
Perform auto-complete using an Address Query.
void alias_shutdown(void)
Clean up the Alias globals.
void query_index(struct ConfigSubset *sub)
Perform an Alias Query and display the results.
enum CommandResult parse_unalias(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unalias' command - Implements Command::parse()
void mutt_expand_aliases_env(struct Envelope *env)
Expand aliases in all the fields of an Envelope.
CommandResult
Error codes for command_t parse functions.
void mutt_expand_aliases(struct AddressList *al)
Expand aliases in a List of Addresses.
struct AddressList * alias_lookup(const char *name)
Find an Alias.
int alias_complete(char *buf, size_t buflen, struct ConfigSubset *sub)
alias completion routine
Container for lots of config items.
A set of inherited config items.
struct Address * alias_reverse_lookup(const struct Address *addr)
Does the user have an alias for the given address.
bool mutt_addr_is_user(const struct Address *addr)
Does the address belong to the user.