NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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#include "email/lib.h"
30
34struct Alias
35{
36 char *name;
37 struct AddressList addr;
38 char *comment;
39 struct TagList tags;
40 TAILQ_ENTRY(Alias) entries;
41};
42TAILQ_HEAD(AliasList, Alias);
43
44extern struct AliasList Aliases;
45
55{
60};
61
66{
67 struct Alias *alias;
68};
69
70void alias_free(struct Alias **ptr);
71struct Alias *alias_new (void);
72
73void aliaslist_clear(struct AliasList *al);
74
75#endif /* MUTT_ALIAS_ALIAS_H */
Email Address Handling.
void alias_free(struct Alias **ptr)
Free an Alias.
Definition: alias.c:672
struct AliasList Aliases
List of all the user's email aliases.
Definition: alias.c:62
NotifyAlias
Alias notification types.
Definition: alias.h:55
@ NT_ALIAS_DELETE_ALL
All Aliases are about to be deleted.
Definition: alias.h:58
@ NT_ALIAS_ADD
Alias has been added.
Definition: alias.h:56
@ NT_ALIAS_CHANGE
Alias has been changed.
Definition: alias.h:59
@ NT_ALIAS_DELETE
Alias is about to be deleted.
Definition: alias.h:57
struct Alias * alias_new(void)
Create a new Alias.
Definition: alias.c:660
void aliaslist_clear(struct AliasList *al)
Empty a List of Aliases.
Definition: alias.c:697
Structs that make up an email.
Convenience wrapper for the library headers.
#define TAILQ_HEAD(name, type)
Definition: queue.h:623
A shortcut for an email address or addresses.
Definition: alias.h:35
struct TagList tags
Tags.
Definition: alias.h:39
char * comment
Free-form comment string.
Definition: alias.h:38
TAILQ_ENTRY(Alias) entries
Linked list.
char * name
Short name.
Definition: alias.h:36
struct AddressList addr
List of Addresses the Alias expands to.
Definition: alias.h:37
An alias-change event.
Definition: alias.h:66
struct Alias * alias
Alias that changed.
Definition: alias.h:67