aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/state/templates.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/state/templates.go b/lib/state/templates.go
index 868f9184..801de752 100644
--- a/lib/state/templates.go
+++ b/lib/state/templates.go
@@ -161,6 +161,13 @@ func (d *templateData) AccountBackend() string {
return ""
}
+func (d *templateData) AccountFrom() *mail.Address {
+ if d.account != nil {
+ return d.account.From
+ }
+ return nil
+}
+
func (d *templateData) Folder() string {
if d.folder != nil {
return d.folder.Name