From e9dd8f047f56defc6ba663fef6e467a3761ccfff Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 6 Aug 2018 06:02:09 +0000 Subject: [PATCH] Move mime strict property The Oracle documentation is confusing: - as system property: https://docs.oracle.com/javaee/6/api/javax/mail/internet/package-summary.html - as session property: https://docs.oracle.com/javaee/6/api/javax/mail/internet/MimeMessage.html --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 403fd998..1a853ca2 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -117,7 +117,6 @@ public class ServiceSynchronize extends LifecycleService { System.setProperty("mail.mime.ignoreunknownencoding", "true"); System.setProperty("mail.mime.decodefilename", "true"); System.setProperty("mail.mime.encodefilename", "true"); - System.setProperty("mail.mime.address.strict", "false"); } @Override @@ -289,6 +288,7 @@ public class ServiceSynchronize extends LifecycleService { try { Properties props = MessageHelper.getSessionProperties(); props.put("mail.imaps.peek", "true"); + props.setProperty("mail.mime.address.strict", "false"); //props.put("mail.imaps.minidletime", "5000"); Session isession = Session.getInstance(props, null); // isession.setDebug(true);