This commit is contained in:
gutmet 2020-11-21 10:28:24 +01:00
parent 3c4a2651e7
commit fb2aa9a886

View File

@ -106,7 +106,7 @@ func setHeaderFields(mail *mail.Message, listname string, f flags) {
canChange := func(headerName string) bool { canChange := func(headerName string) bool {
headerName = ":" + headerName + ":" headerName = ":" + headerName + ":"
headerNameLower := strings.ToLower(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() + ">"} bounceAddress := []string{"<" + f.returnPath() + ">"}
listAddress := []string{"<" + listname + ">"} listAddress := []string{"<" + listname + ">"}