NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
alias.h
Go to the documentation of this file.
1
24#ifndef MUTT_ALIAS_ALIAS_H
25#define MUTT_ALIAS_ALIAS_H
26
27#include "mutt/lib.h"
28#include "address/lib.h"
29
33struct Alias
34{
35 char *name;
36 struct AddressList addr;
37 char *comment;
38 TAILQ_ENTRY(Alias) entries;
39};
40TAILQ_HEAD(AliasList, Alias);
41
42extern struct AliasList Aliases;
43
53{
58};
59
64{
65 struct Alias *alias;
66};
67
68void alias_free (struct Alias **ptr);
69void aliaslist_free(struct AliasList *al);
70struct Alias *alias_new (void);
71
72#endif /* MUTT_ALIAS_ALIAS_H */
Email Address Handling.
void alias_free(struct Alias **ptr)
Free an Alias.
Definition: alias.c:641
struct AliasList Aliases
List of all the user's email aliases.
Definition: alias.c:58
NotifyAlias
Alias notification types.
Definition: alias.h:53
@ NT_ALIAS_DELETE_ALL
All Aliases are about to be deleted.
Definition: alias.h:56
@ NT_ALIAS_ADD
Alias has been added.
Definition: alias.h:54
@ NT_ALIAS_CHANGE
Alias has been changed.
Definition: alias.h:57
@ NT_ALIAS_DELETE
Alias is about to be deleted.
Definition: alias.h:55
struct Alias * alias_new(void)
Create a new Alias.
Definition: alias.c:630
void aliaslist_free(struct AliasList *al)
Free a List of Aliases.
Definition: alias.c:662
TAILQ_HEAD(AliasList, Alias)
Convenience wrapper for the library headers.
A shortcut for an email address or addresses.
Definition: alias.h:34
char * comment
Free-form comment string.
Definition: alias.h:37
TAILQ_ENTRY(Alias) entries
Linked list.
char * name
Short name.
Definition: alias.h:35
struct AddressList addr
List of Addresses the Alias expands to.
Definition: alias.h:36
An alias-change event.
Definition: alias.h:64
struct Alias * alias
Alias that changed.
Definition: alias.h:65