diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-05-30 11:30:17 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-05 08:41:13 +0200 |
commit | 47c226687265ff29969fd73cdc69a938fae20d4c (patch) | |
tree | ca4e07dd81816a2725f2bf8f3ef9b727bbbf03bd /models | |
parent | 74bba6745d2bf1120d143a9898c8a7204d9d20e9 (diff) | |
download | aerc-47c226687265ff29969fd73cdc69a938fae20d4c.tar.gz |
templates: add .AccountBackend
It's useful to know what the current account's backend is, especially if
one has multiple configs where the same account name might use
a different backend. Add AccountBackend to templates.
Changelog-added: Added `{{.AccountBackend}}` to templates.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'models')
-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 5caed158..c9b5d5b3 100644 --- a/models/templates.go +++ b/models/templates.go @@ -9,6 +9,7 @@ import ( // This interface needs to be implemented for compliance with aerc-templates(7) type TemplateData interface { Account() string + AccountBackend() string Folder() string To() []*mail.Address Cc() []*mail.Address |