aboutsummaryrefslogtreecommitdiffstats
path: root/models
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 /models
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 'models')
-rw-r--r--models/templates.go1
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