Browse Source

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
main
M66B 6 years ago
parent
commit
e9dd8f047f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

+ 1
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java 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);


Loading…
Cancel
Save