aboutsummaryrefslogtreecommitdiffstats
path: root/doc/aerc-templates.7.scd
diff options
context:
space:
mode:
Diffstat (limited to 'doc/aerc-templates.7.scd')
-rw-r--r--doc/aerc-templates.7.scd14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/aerc-templates.7.scd b/doc/aerc-templates.7.scd
index 19a7bd36..dee44eee 100644
--- a/doc/aerc-templates.7.scd
+++ b/doc/aerc-templates.7.scd
@@ -273,6 +273,13 @@ aerc provides the following additional functions:
{{.To | names | join ", "}}
```
+*split*
+ Split a string into a string slice with a separator:
+
+ ```
+ {{.To | names | join ", " | split ", "}}
+ ```
+
*names*
Extracts the names part from a mail.Address list. If there is no name
available, the mbox (email address without @domain) is returned instead.
@@ -338,6 +345,13 @@ aerc provides the following additional functions:
{{index (.To | persons) 0}}
```
+*.Attach*
+ Attaches a file to the message being composed.
+
+ ```
+ {{.Attach '/usr/libexec/aerc/filters/html'}}
+ ```
+
*exec*
Execute external command, provide the second argument to its stdin.