From 47c226687265ff29969fd73cdc69a938fae20d4c Mon Sep 17 00:00:00 2001 From: Bence Ferdinandy Date: Thu, 30 May 2024 11:30:17 +0200 Subject: 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 Acked-by: Robin Jarry --- models/templates.go | 1 + 1 file changed, 1 insertion(+) (limited to 'models') 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 -- cgit