aboutsummaryrefslogtreecommitdiffstats
path: root/config/templates.go
diff options
context:
space:
mode:
authorBence Ferdinandy <bence@ferdinandy.com>2024-05-30 11:30:17 +0200
committerRobin Jarry <robin@jarry.cc>2024-06-05 08:41:13 +0200
commit47c226687265ff29969fd73cdc69a938fae20d4c (patch)
treeca4e07dd81816a2725f2bf8f3ef9b727bbbf03bd /config/templates.go
parent74bba6745d2bf1120d143a9898c8a7204d9d20e9 (diff)
downloadaerc-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.go1
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} }