NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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
34
struct
Alias
35
{
36
char
*
name
;
37
struct
AddressList
addr
;
38
char
*
comment
;
39
struct
TagList
tags
;
40
};
41
ARRAY_HEAD
(AliasArray,
struct
Alias
*);
42
43
extern
struct
AliasArray
Aliases
;
44
53
enum
NotifyAlias
54
{
55
NT_ALIAS_ADD
= 1,
56
NT_ALIAS_DELETE
,
57
NT_ALIAS_DELETE_ALL
,
58
NT_ALIAS_CHANGE
,
59
};
60
64
struct
EventAlias
65
{
66
struct
Alias
*
alias
;
67
};
68
69
void
alias_free
(
struct
Alias
**ptr);
70
struct
Alias
*
alias_new
(
void
);
71
72
void
aliaslist_clear
(
struct
AliasArray *aa);
73
74
#endif
/* MUTT_ALIAS_ALIAS_H */
lib.h
Email Address Handling.
alias_free
void alias_free(struct Alias **ptr)
Free an Alias.
Definition
alias.c:674
Aliases
struct AliasArray Aliases
aliaslist_clear
void aliaslist_clear(struct AliasArray *aa)
Empty a List of Aliases.
Definition
alias.c:699
NotifyAlias
NotifyAlias
Alias notification types.
Definition
alias.h:54
NT_ALIAS_DELETE_ALL
@ NT_ALIAS_DELETE_ALL
All Aliases are about to be deleted.
Definition
alias.h:57
NT_ALIAS_ADD
@ NT_ALIAS_ADD
Alias has been added.
Definition
alias.h:55
NT_ALIAS_CHANGE
@ NT_ALIAS_CHANGE
Alias has been changed.
Definition
alias.h:58
NT_ALIAS_DELETE
@ NT_ALIAS_DELETE
Alias is about to be deleted.
Definition
alias.h:56
alias_new
struct Alias * alias_new(void)
Create a new Alias.
Definition
alias.c:662
ARRAY_HEAD
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
Definition
array.h:47
lib.h
Structs that make up an email.
lib.h
Convenience wrapper for the library headers.
Alias
A shortcut for an email address or addresses.
Definition
alias.h:35
Alias::tags
struct TagList tags
Tags.
Definition
alias.h:39
Alias::comment
char * comment
Free-form comment string.
Definition
alias.h:38
Alias::name
char * name
Short name.
Definition
alias.h:36
Alias::addr
struct AddressList addr
List of Addresses the Alias expands to.
Definition
alias.h:37
EventAlias
An alias-change event.
Definition
alias.h:65
EventAlias::alias
struct Alias * alias
Alias that changed.
Definition
alias.h:66