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
This commit is contained in:
M66B 2018-08-06 06:02:09 +00:00
parent b824f12a45
commit e9dd8f047f
1 changed files with 1 additions and 1 deletions

View File

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