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 /widgets/aerc.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 'widgets/aerc.go')
-rw-r--r-- | widgets/aerc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go index cf893a7d..f6e5c1ff 100644 --- a/widgets/aerc.go +++ b/widgets/aerc.go @@ -748,7 +748,7 @@ func (aerc *Aerc) Mbox(source string) error { aerc.PushStatus(info, 10*time.Second) log.Debugf(info) } else { - acctConf.From = "<user@localhost>" + acctConf.From = &mail.Address{Address: "user@localhost"} } acctConf.Name = "mbox" acctConf.Source = source |