From b7833f176a227ada208bdef0d6b93ca7c7f20fbe Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 18 Nov 2019 13:06:05 +0100 Subject: [PATCH] Ignore all boundary errors --- 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 81cda3f8a6..5fe5ce1e16 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -100,6 +100,8 @@ public class MessageHelper { // https://docs.oracle.com/javaee/6/api/javax/mail/internet/MimeMultipart.html System.setProperty("mail.mime.multipart.ignoremissingboundaryparameter", "true"); // javax.mail.internet.ParseException: In parameter list System.setProperty("mail.mime.multipart.ignoreexistingboundaryparameter", "true"); + System.setProperty("mail.mime.multipart.ignoremissingendboundary", "true"); + System.setProperty("mail.mime.multipart.allowempty", "true"); } static Properties getSessionProperties() {