From f39d973b1f0d050c896e45b1b2b1630fb55d486c Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 8 Jul 2019 13:39:25 +0200 Subject: [PATCH] Fixed decoding of subject --- .../main/java/eu/faircode/email/MessageHelper.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 82e0c1887c..5ebb50afa0 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -617,12 +617,11 @@ public class MessageHelper { subject = MimeUtility.unfold(subject); subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1)); - if (subject.startsWith("=?")) - try { - subject = MimeUtility.decodeText(subject); - } catch (UnsupportedEncodingException ex) { - Log.w(ex); - } + try { + subject = MimeUtility.decodeText(subject); + } catch (UnsupportedEncodingException ex) { + Log.w(ex); + } subject = decodeMime(subject);