aboutsummaryrefslogtreecommitdiffstats
path: root/config/aerc.conf
diff options
context:
space:
mode:
authorBence Ferdinandy <bence@ferdinandy.com>2023-11-24 21:28:12 +0100
committerRobin Jarry <robin@jarry.cc>2023-11-24 22:45:03 +0100
commit8ee61777ada29432783e18a7634ab1150a631987 (patch)
treeb66e9ea50282c4cbb05fb680e101694d3b09c8fd /config/aerc.conf
parenteda71c55d4ccd3b43c2f108de8f9ea9f8382db36 (diff)
downloadaerc-8ee61777ada29432783e18a7634ab1150a631987.tar.gz
templates: display "(no subject)" when subject is empty
An empty subject, especially in a thread makes it for a slightly jarring layout. Add a new option empty-subject option to UI with "(no subject") as the default value. If the subject is empty and the current message is not the same subject as it's parent in a thread make {{.Subject}} evaluate to this option's value. Changelog-added: The `{{.Subject}}` template is evaluated to the new option `[ui].empty-subject` if the subject is empty. Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/aerc.conf')
-rw-r--r--config/aerc.conf5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 0dfab7fc..92b92b8e 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -131,6 +131,11 @@
#
# Default: (no folders)
#empty-dirlist=(no folders)
+#
+# Value to set {{.Subject}} template to when subject is empty.
+#
+# Default: (no subject)
+#empty-subject=(no subject)
# Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel
#