From a707401bd440a2524682585829e3db5380213d5f Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 30 Apr 2020 08:45:16 +0200 Subject: [PATCH] Fixed extra whitespace in addresses --- app/src/main/java/eu/faircode/email/MessageHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 0a73365c28..7b86558a22 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1046,6 +1046,7 @@ public class MessageHelper { return null; header = fixEncoding(name, header); + header = header.replaceAll("\\?=\\r?\\n\\s+=\\?", "\\?==\\?"); Address[] addresses = InternetAddress.parseHeader(header, false); for (Address address : addresses) {