simplify
This commit is contained in:
parent
3c4a2651e7
commit
fb2aa9a886
|
@ -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 + ">"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user