Workaround wrongly encoded file names

pull/161/head
M66B 5 years ago
parent b3e28071b3
commit 1dc9c60189

@ -1020,6 +1020,8 @@ public class MessageHelper {
String filename; String filename;
try { try {
filename = part.getFileName(); filename = part.getFileName();
if (filename != null)
filename = decodeMime(filename);
} catch (MessagingException ex) { } catch (MessagingException ex) {
Log.w(ex); Log.w(ex);
parts.warnings.add(Helper.formatThrowable(ex, false)); parts.warnings.add(Helper.formatThrowable(ex, false));

Loading…
Cancel
Save