From 1dc9c601897de944b7825b8c04942caaae43b904 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 21 Aug 2019 11:57:02 +0200 Subject: [PATCH] Workaround wrongly encoded file names --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 6d45675e36..686701f261 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -1020,6 +1020,8 @@ public class MessageHelper { String filename; try { filename = part.getFileName(); + if (filename != null) + filename = decodeMime(filename); } catch (MessagingException ex) { Log.w(ex); parts.warnings.add(Helper.formatThrowable(ex, false));