NeoMutt  2020-11-20
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 
33 struct Alias
34 {
35  char *name;
36  struct AddressList addr;
37  char *comment;
38  TAILQ_ENTRY(Alias) entries;
39 };
40 TAILQ_HEAD(AliasList, Alias);
41 
42 extern struct AliasList Aliases;
43 
50 {
54 };
55 
59 struct EventAlias
60 {
61  struct Alias *alias;
62 };
63 
64 void alias_free (struct Alias **ptr);
65 void aliaslist_free(struct AliasList *al);
66 struct Alias *alias_new (void);
67 
68 #endif /* MUTT_ALIAS_ALIAS_H */
A shortcut for an email address or addresses.
Definition: alias.h:33
void aliaslist_free(struct AliasList *al)
Free a List of Aliases.
Definition: alias.c:639
char * name
Short name.
Definition: alias.h:35
TAILQ_ENTRY(Alias) entries
Linked list.
TAILQ_HEAD(AliasList, Alias)
An alias-change event.
Definition: alias.h:59
Email Address Handling.
An Alias has been changed.
Definition: alias.h:52
struct AliasList Aliases
List of all the user's email aliases.
Definition: alias.c:55
void alias_free(struct Alias **ptr)
Free an Alias.
Definition: alias.c:619
A new Alias has been created.
Definition: alias.h:51
struct Alias * alias
Definition: alias.h:61
char * comment
Free-form comment string.
Definition: alias.h:37
struct Alias * alias_new(void)
Create a new Alias.
Definition: alias.c:608
An Alias is about to be deleted.
Definition: alias.h:53
NotifyAlias
Alias notification types.
Definition: alias.h:49
struct AddressList addr
List of Addresses the Alias expands to.
Definition: alias.h:36
Convenience wrapper for the library headers.