diff options
author | Timmy Douglas <mail@timmydouglas.com> | 2020-02-01 14:46:16 -0800 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-02-06 14:38:55 -0500 |
commit | 8c8096da9728870bd8d39ec22e3fd8d14f44912d (patch) | |
tree | 2fc043c8f936010964687c52fab3c608e7756f3a /worker/lib | |
parent | 77d54fe99f4c3ccd89e0b9dd0355e7b0b79de7ba (diff) | |
download | aerc-8c8096da9728870bd8d39ec22e3fd8d14f44912d.tar.gz |
worker/lib/parse: be more tolerant with parsing email addresses
Diffstat (limited to 'worker/lib')
-rw-r--r-- | worker/lib/parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worker/lib/parse.go b/worker/lib/parse.go index 288dade..fd744a7 100644 --- a/worker/lib/parse.go +++ b/worker/lib/parse.go @@ -145,7 +145,7 @@ func parseAddressList(h *mail.Header, key string) ([]*models.Address, error) { var converted []*models.Address addrs, err := h.AddressList(key) if err != nil { - if hdr, err := h.Text(key); err != nil && strings.Contains(hdr, "@") { + if hdr, err := h.Text(key); err == nil { return []*models.Address{&models.Address{ Name: hdr, }}, nil |