Added workaround for Yahoo DMARC

This commit is contained in:
M66B
2024-05-31 18:36:56 +02:00
parent e9f7bcc4ed
commit 841b46c5a2

View File

@@ -2199,7 +2199,7 @@ public class MessageHelper {
if (v == null)
continue;
String[] val = v.split("\\s+");
String[] val = v.split("[^A-za-z]+");
if (val.length == 0)
continue;
@@ -2284,7 +2284,7 @@ public class MessageHelper {
// result = "Pass" / "Fail" / "SoftFail" / "Neutral" / "None" / "TempError" / "PermError"
String spf = MimeUtility.unfold(headers[0]);
String[] values = spf.trim().split("\\s+");
String[] values = spf.trim().split("[^A-Za-z]+");
if (values.length == 0)
return null;