From 81e97da66b9c66a7fdae1eb0dfc592b2273e9644 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 10 Feb 2020 17:16:24 +0100 Subject: [PATCH] Normalize subject --- app/src/main/java/eu/faircode/email/MessageHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 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 87ca9b39eb..8321db2cab 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1022,7 +1022,10 @@ public class MessageHelper { subject = MimeUtility.unfold(subject); subject = decodeMime(subject); - return subject; + return subject + .trim() + .replace("\n", "") + .replace("\r", ""); } Long getSize() throws MessagingException {