NeoMutt  2021-02-05-666-ge300cd
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 
53 {
58 };
59 
63 struct EventAlias
64 {
65  struct Alias *alias;
66 };
67 
68 void alias_free (struct Alias **ptr);
69 void aliaslist_free(struct AliasList *al);
70 struct Alias *alias_new (void);
71 
72 #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:650
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:63
All Aliases are about to be deleted.
Definition: alias.h:56
Email Address Handling.
Alias is about to be deleted.
Definition: alias.h:55
struct AliasList Aliases
List of all the user's email aliases.
Definition: alias.c:57
void alias_free(struct Alias **ptr)
Free an Alias.
Definition: alias.c:629
Alias has been added.
Definition: alias.h:54
struct Alias * alias
Definition: alias.h:65
char * comment
Free-form comment string.
Definition: alias.h:37
struct Alias * alias_new(void)
Create a new Alias.
Definition: alias.c:618
Alias has been changed.
Definition: alias.h:57
NotifyAlias
Alias notification types.
Definition: alias.h:52
struct AddressList addr
List of Addresses the Alias expands to.
Definition: alias.h:36
Convenience wrapper for the library headers.