diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 8f7d005b15..1d7c27f162 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -46,6 +46,7 @@ import com.sun.mail.imap.protocol.IMAPProtocol; import com.sun.mail.imap.protocol.MessageSet; import com.sun.mail.util.ASCIIUtility; import com.sun.mail.util.BASE64DecoderStream; +import com.sun.mail.util.DecodingException; import com.sun.mail.util.FolderClosedIOException; import com.sun.mail.util.MessageRemovedIOException; @@ -2989,6 +2990,10 @@ public class MessageHelper { Log.e(content.getClass().getName()); result = content.toString(); } + } catch (DecodingException ex) { + Log.e(ex); + warnings.add(Log.formatThrowable(ex, false)); + return null; } catch (IOException | FolderClosedException | MessageRemovedException ex) { throw ex; } catch (Throwable ex) {