aerc-templates(7)

NAME

aerc-templates - template file specification for aerc(1)

SYNOPSIS

aerc uses the go "text/template" package for the template parsing. Refer to the go text/template documentation for the general syntax.

Template files are composed of headers, followed by a newline, followed by the body text.

Example:

    X-Clacks-Overhead: GNU Terry Pratchett
    Hello,
    Greetings,
    Chuck

If you have a template that doesn't add any header, it must be preceded by a newline, to avoid parsing parts of the body as header text.

MESSAGE DATA

The following data can be used in templates. Though they are not all available always.

Addresses
    An array of mail.Address. That can be used to add sender or recipient names to the template.

        • From: List of senders.
        • To: List of To recipients. Not always Available.
        • Cc: List of Cc recipients. Not always Available.
        • Bcc: List of Cc recipients. Not always Available.
        • OriginalFrom: List of senders of the original message. Available for quoted reply and forward.

    Example:

    Get the name of the first sender.
        {