From 63f0e0cbc9a5f072d8915717c89d7ab4f4ff94af Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 25 Jan 2023 00:34:59 +0100 Subject: viewer: allow piping full headers in a filter Allow defining a .headers special filter command that will be used only to process email headers (when [viewer].show-headers=true). Signed-off-by: Robin Jarry Tested-by: Kt Programs --- doc/aerc-config.5.scd | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/aerc-config.5.scd') diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index cc0a5f80..22c3a40a 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -644,6 +644,10 @@ The following variables are defined in the filter command environment: Note that said email body is converted into UTF-8 before being passed to filters. +If *show-headers* is enabled, only the currently viewed part body is piped into +the filter command. A special _.headers_ filter command can be defined to post +process the full headers. + ## EXAMPLES _text/plain_ @@ -708,6 +712,13 @@ _text/\*_ text/\*=bat -fP --file-name="$AERC_FILENAME" --style=plain ``` +_.headers_ + Colorize email headers when *show-headers* is _true_. + + ``` + .headers=colorize + ``` + _message/delivery-status_ When not being able to deliver the provider might send such emails: -- cgit