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 /config/templates.go | |
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 'config/templates.go')
-rw-r--r-- | config/templates.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/templates.go b/config/templates.go index edcd3abb..5a38cd61 100644 --- a/config/templates.go +++ b/config/templates.go @@ -65,6 +65,7 @@ var ( ) func (d *dummyData) Account() string { return "work" } +func (d *dummyData) AccountBackend() string { return "maildir" } func (d *dummyData) Signature() string { return "" } func (d *dummyData) Folder() string { return "INBOX" } func (d *dummyData) To() []*mail.Address { return []*mail.Address{&addr1} } |