From 841b46c5a2e731f85ad23115ebf3bffa64098a12 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 31 May 2024 18:36:56 +0200 Subject: [PATCH] Added workaround for Yahoo DMARC --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index dc129a7392..f47e11a107 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -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;