about summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-05-02 14:06:02 +0200
committerDrew DeVault <sir@cmpwn.com>2020-05-06 10:00:59 -0400
commit6bd6690d80931062210d18f3e9855074707b03a8 (patch)
treef1d0460cb11a51037bda61f170ffad1c60b5a5f4 /doc
parent434eaa19a18a1f4c49796118e3c601317374474e (diff)
downloadaerc-6bd6690d80931062210d18f3e9855074707b03a8.tar.gz
templates: add version func
Fixes #316
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc-templates.7.scd7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
index ff5d4b5..d065012 100644
--- a/doc/aerc-templates.7.scd
+++ b/doc/aerc-templates.7.scd
@@ -125,6 +125,13 @@ aerc provides the following additional functions:
 	{{dateFormat .Date "Mon Jan 2 15:04:05 -0700 MST 2006"}}
 	```
 
+*version*
+	Returns the version of aerc, which can be useful for things like X-Mailer.
+
+	```
+	X-Mailer: aerc {{version}}
+	```
+
 *Function chaining*
 	All of the template functions can be chained together if needed.