From f16fd13c067c9d98044b6b178d3d97447d77614e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Jan 2020 11:27:47 +0100 Subject: [PATCH] Prevent removing spaces from subjects --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index ad12e7add1..e64c296ddc 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -973,8 +973,8 @@ public class MessageHelper { if (subject == null) return null; + subject = subject.replaceAll("\\?=\\r?\\n\\s+=\\?", "\\?==\\?"); subject = MimeUtility.unfold(subject); - subject = subject.replaceAll("\\?=\\s+=\\?", "\\?==\\?"); subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1)); subject = decodeMime(subject);