summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
authorTimmy Douglas <mail@timmydouglas.com>2020-02-01 14:46:16 -0800
committerDrew DeVault <sir@cmpwn.com>2020-02-06 14:38:55 -0500
commit8c8096da9728870bd8d39ec22e3fd8d14f44912d (patch)
tree2fc043c8f936010964687c52fab3c608e7756f3a /worker
parent77d54fe99f4c3ccd89e0b9dd0355e7b0b79de7ba (diff)
downloadaerc-8c8096da9728870bd8d39ec22e3fd8d14f44912d.tar.gz
worker/lib/parse: be more tolerant with parsing email addresses
Diffstat (limited to 'worker')
-rw-r--r--worker/lib/parse.go2
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