Representation of a single alias to an email address. More...
Go to the source code of this file.
Data Structures | |
struct | Alias |
A shortcut for an email address or addresses. More... | |
struct | EventAlias |
An alias-change event. More... | |
Enumerations | |
enum | NotifyAlias { NT_ALIAS_ADD = 1 , NT_ALIAS_DELETE , NT_ALIAS_DELETE_ALL , NT_ALIAS_CHANGE } |
Alias notification types. More... | |
Functions | |
TAILQ_HEAD (AliasList, Alias) | |
void | alias_free (struct Alias **ptr) |
Free an Alias. | |
struct Alias * | alias_new (void) |
Create a new Alias. | |
void | aliaslist_clear (struct AliasList *al) |
Empty a List of Aliases. | |
Variables | |
struct AliasList | Aliases |
List of all the user's email aliases. | |
Representation of a single alias to an email address.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file alias.h.
enum NotifyAlias |
Alias notification types.
Observers of NT_ALIAS will be passed an EventAlias.
Enumerator | |
---|---|
NT_ALIAS_ADD | Alias has been added. |
NT_ALIAS_DELETE | Alias is about to be deleted. |
NT_ALIAS_DELETE_ALL | All Aliases are about to be deleted. |
NT_ALIAS_CHANGE | Alias has been changed. |
TAILQ_HEAD | ( | AliasList | , |
Alias | |||
) |
void alias_free | ( | struct Alias ** | ptr | ) |
Free an Alias.
[out] | ptr | Alias to free |
Definition at line 672 of file alias.c.
struct Alias * alias_new | ( | void | ) |
Create a new Alias.
ptr | Newly allocated Alias |
Free the result with alias_free()
Definition at line 660 of file alias.c.
void aliaslist_clear | ( | struct AliasList * | al | ) |
Empty a List of Aliases.
al | AliasList to empty |
Each Alias will be freed and the AliasList will be left empty.
Definition at line 697 of file alias.c.