File: mailheader.el.html

This package provides an abstraction of RFC 822 (or later) format, used in mail, news, and some other systems. The simple syntactic rules for such headers, such as quoting and line folding, are routinely reimplemented in many individual packages. This package removes the need for this redundancy by representing message headers as association lists, offering functions to extract the set of headers from a message, to parse individual headers, to merge sets of headers, and to format a set of headers.

The car of each element in the message-header alist is a symbol whose print name is the name of the header, in all lower-case. The cdr of an element depends on the operation. After extracting headers from a message, it is a string, the value of the header. An extracted set of headers may be parsed further, which may turn it into a list, whose car is the original value and whose subsequent elements depend on the header. For formatting, it is evaluated to obtain the strings to be inserted. For merging, one set of headers consists of strings, while the other set will be evaluated with the symbols in the first set of headers bound to their respective values.

Defined variables (0)

Defined functions (7)

mail-header(HEADER &optional HEADER-ALIST)
mail-header-extract()
mail-header-extract-no-properties()
mail-header-format(FORMAT-RULES HEADERS)
mail-header-merge(MERGE-RULES HEADERS)
mail-header-parse(PARSING-RULES HEADERS)
mail-header-set(HEADER VALUE &optional HEADER-ALIST)

Defined faces (0)