From 1d4eafb011f46966848d55f381160e846d0d50c8 Mon Sep 17 00:00:00 2001 From: Bence Ferdinandy Date: Mon, 1 Jul 2024 21:43:35 +0200 Subject: templates: add {{.AccountFrom}} template Add template variable to access the current account's From address. Implements: https://todo.sr.ht/~rjarry/aerc/150 Changelog-added: New `{{.AccountFrom}}` template variable. Signed-off-by: Bence Ferdinandy Tested-by: Koni Marti Acked-by: Robin Jarry --- models/templates.go | 1 + 1 file changed, 1 insertion(+) (limited to 'models/templates.go') diff --git a/models/templates.go b/models/templates.go index 757e934a..27a3ca6e 100644 --- a/models/templates.go +++ b/models/templates.go @@ -10,6 +10,7 @@ import ( type TemplateData interface { Account() string AccountBackend() string + AccountFrom() *mail.Address Folder() string To() []*mail.Address Cc() []*mail.Address -- cgit