From 8c8096da9728870bd8d39ec22e3fd8d14f44912d Mon Sep 17 00:00:00 2001 From: Timmy Douglas Date: Sat, 1 Feb 2020 14:46:16 -0800 Subject: worker/lib/parse: be more tolerant with parsing email addresses --- worker/lib/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/lib/parse.go b/worker/lib/parse.go index 288daded..fd744a7c 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 -- cgit