NeoMutt  2021-02-05-89-gabe350
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 */
NotifyAlias
NotifyAlias
Alias notification types.
Definition: alias.h:49
Alias::addr
struct AddressList addr
List of Addresses the Alias expands to.
Definition: alias.h:36
alias_free
void alias_free(struct Alias **ptr)
Free an Alias.
Definition: alias.c:628
Alias::TAILQ_ENTRY
TAILQ_ENTRY(Alias) entries
Linked list.
NT_ALIAS_CHANGED
@ NT_ALIAS_CHANGED
An Alias has been changed.
Definition: alias.h:52
EventAlias
An alias-change event.
Definition: alias.h:59
aliaslist_free
void aliaslist_free(struct AliasList *al)
Free a List of Aliases.
Definition: alias.c:648
alias_new
struct Alias * alias_new(void)
Create a new Alias.
Definition: alias.c:617
lib.h
lib.h
Aliases
struct AliasList Aliases
List of all the user's email aliases.
Definition: alias.c:55
Alias::name
char * name
Short name.
Definition: alias.h:35
NT_ALIAS_NEW
@ NT_ALIAS_NEW
A new Alias has been created.
Definition: alias.h:51
EventAlias::alias
struct Alias * alias
Definition: alias.h:61
NT_ALIAS_DELETED
@ NT_ALIAS_DELETED
An Alias is about to be deleted.
Definition: alias.h:53
Alias::comment
char * comment
Free-form comment string.
Definition: alias.h:37
Alias
A shortcut for an email address or addresses.
Definition: alias.h:33
TAILQ_HEAD
TAILQ_HEAD(AliasList, Alias)