From fb2aa9a8860cd2e931ba2d7485e4e8356ce40e4c Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 21 Nov 2020 10:28:24 +0100 Subject: [PATCH] simplify --- picolist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picolist.go b/picolist.go index bd487c1..49df880 100644 --- a/picolist.go +++ b/picolist.go @@ -106,7 +106,7 @@ func setHeaderFields(mail *mail.Message, listname string, f flags) { canChange := func(headerName string) bool { headerName = ":" + headerName + ":" headerNameLower := strings.ToLower(headerName) - return dkim == "" || (!strings.Contains(dkim, headerName) && !strings.Contains(dkim, headerNameLower)) + return !strings.Contains(dkim, headerName) && !strings.Contains(dkim, headerNameLower) } bounceAddress := []string{"<" + f.returnPath() + ">"} listAddress := []string{"<" + listname + ">"}