diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-07-01 21:43:35 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-08-03 17:42:11 +0200 |
commit | 1d4eafb011f46966848d55f381160e846d0d50c8 (patch) | |
tree | 95ac8c80255dd65892c1b321047a60c2fc4e8e38 /models/templates.go | |
parent | 9d8d74d9bf438c337ac0d6eed1b5dede5cc0ceb2 (diff) | |
download | aerc-1d4eafb011f46966848d55f381160e846d0d50c8.tar.gz |
templates: add {{.AccountFrom}} template
Add template variable to access the current account's From address.
Implements: https://todo.sr.ht/~rjarry/aerc/150
Changelog-added: New `{{.AccountFrom}}` template variable.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Tested-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'models/templates.go')
-rw-r--r-- | models/templates.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/templates.go b/models/templates.go index 757e934a..27a3ca6e 100644 --- a/models/templates.go +++ b/models/templates.go @@ -10,6 +10,7 @@ import ( type TemplateData interface { Account() string AccountBackend() string + AccountFrom() *mail.Address Folder() string To() []*mail.Address Cc() []*mail.Address |