diff options
author | Jens Grassel <jens@wegtam.com> | 2023-10-27 15:14:36 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-02 11:57:05 +0100 |
commit | eadaec1b3c0cc3439f54595d0748e564d4129728 (patch) | |
tree | e29e5ef0409aeb12492d1c3047ad379722540dcf | |
parent | 6613d9b555beec211b2c30d7049bb75957faeee9 (diff) | |
download | aerc-eadaec1b3c0cc3439f54595d0748e564d4129728.tar.gz |
docs: add examples for modifying column-name
Add two examples for modifying the column-name template to show the
recipient (To field) instead of the sender which might be handy for
sent emails.
Signed-off-by: Jens Grassel <jens@wegtam.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Inwit <inwit@sindominio.net>
-rw-r--r-- | config/aerc.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf index 06cfb2d1..1d5ffe8b 100644 --- a/config/aerc.conf +++ b/config/aerc.conf @@ -69,6 +69,14 @@ # All column-$name settings accept golang text/template syntax. See # aerc-templates(7) for available template attributes and functions. # +# Here are some examples to show the To field instead of the From field for +# an email (modifying column-name): +# +# 1. a generic one +# column-name={{ .Peer | names | join ", " }} +# 2. based upon the selected folder +# column-name={{if match .Folder "^(Gesendet|Sent)$"}}{{index (.To | names) 0}}{{else}}{{index (.From | names) 0}}{{end}} +# # Default settings #column-date={{.DateAutoFormat .Date.Local}} #column-name={{index (.From | names) 0}} |