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