Workaround wrongly encoded file names

This commit is contained in:
M66B 2019-08-21 11:57:02 +02:00
parent b3e28071b3
commit 1dc9c60189
1 changed files with 2 additions and 0 deletions

View File

@ -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));