NeoMutt  2025-12-11-276-g10b23b
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
alias.h
Go to the documentation of this file.
1
23
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};
41ARRAY_HEAD(AliasArray, struct Alias *);
42
43extern struct AliasArray Aliases;
44
60
65{
66 struct Alias *alias;
67};
68
69void alias_free(struct Alias **ptr);
70struct Alias *alias_new (void);
71
72void aliaslist_clear(struct AliasArray *aa);
73
74#endif /* MUTT_ALIAS_ALIAS_H */
Email Address Handling.
void alias_free(struct Alias **ptr)
Free an Alias.
Definition alias.c:673
struct AliasArray Aliases
void aliaslist_clear(struct AliasArray *aa)
Empty a List of Aliases.
Definition alias.c:698
NotifyAlias
Alias notification types.
Definition alias.h:54
@ NT_ALIAS_DELETE_ALL
All Aliases are about to be deleted.
Definition alias.h:57
@ NT_ALIAS_ADD
Alias has been added.
Definition alias.h:55
@ NT_ALIAS_CHANGE
Alias has been changed.
Definition alias.h:58
@ NT_ALIAS_DELETE
Alias is about to be deleted.
Definition alias.h:56
struct Alias * alias_new(void)
Create a new Alias.
Definition alias.c:661
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
Definition array.h:47
Structs that make up an email.
Convenience wrapper for the library headers.
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
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:65
struct Alias * alias
Alias that changed.
Definition alias.h:66