48 intptr_t data,
struct Buffer *err)
50 struct Alias *tmp = NULL;
76 buf_printf(err,
_(
"Warning: Bad address '%s' in alias '%s'"), buf->
data, name);
85 buf_printf(err,
_(
"Warning: Bad IDN '%s' in alias '%s'"), estr, name);
138 char *comment = s->
dptr + 1;
161 intptr_t data,
struct Buffer *err)
167 struct Alias *np = NULL;
void mutt_addrlist_clear(struct AddressList *al)
Unlink and free all Address in an AddressList.
int mutt_addrlist_parse2(struct AddressList *al, const char *s)
Parse a list of email addresses.
int mutt_addrlist_to_intl(struct AddressList *al, char **err)
Convert an Address list to Punycode.
void alias_free(struct Alias **ptr)
Free an Alias.
struct AliasList Aliases
List of all the user's email aliases.
struct Alias * alias_new(void)
Create a new Alias.
void aliaslist_free(struct AliasList *al)
Free a List of Aliases.
Representation of a single alias to an email address.
NotifyAlias
Alias notification types.
@ NT_ALIAS_ADD
Alias has been added.
@ NT_ALIAS_CHANGE
Alias has been changed.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
size_t buf_strcpy(struct Buffer *buf, const char *s)
Copy a string into a Buffer.
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
@ MUTT_CMD_WARNING
Warning: Help given to the user.
int parse_grouplist(struct GroupList *gl, struct Buffer *buf, struct Buffer *s, struct Buffer *err)
Parse a group context.
Functions to parse commands in a config file.
short cs_subset_number(const struct ConfigSubset *sub, const char *name)
Get a number config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
void mutt_grouplist_destroy(struct GroupList *gl)
Free a GroupList.
void mutt_grouplist_add_addrlist(struct GroupList *gl, struct AddressList *al)
Add Address list to a GroupList.
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() -.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG4
Log at debug level 4.
@ LL_DEBUG5
Log at debug level 5.
@ LL_NOTIFY
Log of notifications.
Convenience wrapper for the library headers.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
bool mutt_istr_equal(const char *a, const char *b)
Compare two strings, ignoring case.
char * mutt_str_dup(const char *str)
Copy a string, safely.
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
@ NT_ALIAS
Alias has changed, NotifyAlias, EventAlias.
#define TAILQ_FOREACH(var, head, field)
#define STAILQ_HEAD_INITIALIZER(head)
#define TAILQ_INSERT_TAIL(head, elm, field)
#define TAILQ_REMOVE(head, elm, field)
#define TAILQ_HEAD_INITIALIZER(head)
void alias_reverse_add(struct Alias *alias)
Add an email address lookup for an Alias.
void alias_reverse_delete(struct Alias *alias)
Remove an email address lookup for an Alias.
Manage alias reverse lookups.
struct Buffer * mailbox
Mailbox and host address.
A shortcut for an email address or addresses.
char * comment
Free-form comment string.
struct AddressList addr
List of Addresses the Alias expands to.
String manipulation buffer.
char * dptr
Current read/write position.
char * data
Pointer to data.
Container for Accounts, Notifications.
struct Notify * notify
Notifications handler.
struct ConfigSubset * sub
Inherited config items.