Commit eadaec1b3c0cc3439f54595d0748e564d4129728

Parents: 6613d9b555beec211b2c30d7049bb75957faeee9

From: Jens Grassel <jens@wegtam.com>
Date: Fri Oct 27 15:14:36 2023 +0700

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>

Stats

config/aerc.conf +8/-0

Changeset

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
diff --git a/config/aerc.conf b/config/aerc.conf
index 06cfb2d1e8c8ff2bc893ba836ed1084f4546ddb9..1d5ffe8b617aebbdd96f322cd90e2a0c2a0deaaa 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -69,6 +69,14 @@ # Each name in index-columns must have a corresponding column-$name setting.
 # 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}}