diff options
author | Robin Jarry <robin@jarry.cc> | 2022-12-20 20:29:12 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-04 22:57:31 +0100 |
commit | 37e9a924894db7e5f232e82066155a60827c339b (patch) | |
tree | 48deeeea33113bbc9e6fcbcb8973a3ba1d62a06d /config/triggers.go | |
parent | c56027b2e69ec198e41394e5cf906273d80baf79 (diff) | |
download | aerc-37e9a924894db7e5f232e82066155a60827c339b.tar.gz |
config: parse account from and aliases once
Instead of accepting any garbage for these configuration fields, parse
them when parsing accounts.conf and store mail.Address objects. Reuse
these objects everywhere.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'config/triggers.go')
-rw-r--r-- | config/triggers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/triggers.go b/config/triggers.go index 7b461e70..906928ae 100644 --- a/config/triggers.go +++ b/config/triggers.go @@ -66,7 +66,7 @@ func (trig *TriggersConfig) ExecNewEmail( Ui.ThisYearTimeFormat, Ui.IconAttachment, format.Ctx{ - FromAddress: account.From, + FromAddress: format.AddressForHumans(account.From), AccountName: account.Name, MsgInfo: msg, }, |