1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Small fix/improvement

This commit is contained in:
M66B 2018-10-07 09:49:22 +00:00
parent 11d355c3d5
commit 0bf88fcf9e

View file

@ -83,7 +83,7 @@ public class MessageHelper {
// https://tools.ietf.org/html/rfc4978 // https://tools.ietf.org/html/rfc4978
// https://docs.oracle.com/javase/8/docs/api/java/util/zip/Deflater.html // https://docs.oracle.com/javase/8/docs/api/java/util/zip/Deflater.html
if (false) { if (true) {
Log.i(Helper.TAG, "IMAP compress enabled"); Log.i(Helper.TAG, "IMAP compress enabled");
props.put("mail.imaps.compress.enable", "true"); props.put("mail.imaps.compress.enable", "true");
//props.put("mail.imaps.compress.level", "-1"); //props.put("mail.imaps.compress.level", "-1");
@ -91,6 +91,7 @@ public class MessageHelper {
} }
props.put("mail.imaps.fetchsize", Integer.toString(48 * 1024)); // default 16K props.put("mail.imaps.fetchsize", Integer.toString(48 * 1024)); // default 16K
props.put("mail.imaps.peek", "true");
// https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html#properties // https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html#properties
props.put("mail.smtps.ssl.checkserveridentity", "true"); props.put("mail.smtps.ssl.checkserveridentity", "true");
@ -113,9 +114,6 @@ public class MessageHelper {
props.put("mail.smtp.writetimeout", Integer.toString(NETWORK_TIMEOUT)); // one thread overhead props.put("mail.smtp.writetimeout", Integer.toString(NETWORK_TIMEOUT)); // one thread overhead
props.put("mail.smtp.timeout", Integer.toString(NETWORK_TIMEOUT)); props.put("mail.smtp.timeout", Integer.toString(NETWORK_TIMEOUT));
props.put("mail.imaps.peek", "true");
//props.put("mail.imaps.minidletime", "5000");
props.put("mail.mime.address.strict", "false"); props.put("mail.mime.address.strict", "false");
props.put("mail.mime.decodetext.strict", "false"); props.put("mail.mime.decodetext.strict", "false");