From 16311dbafb22d938e76ad3254c9c839b00cd15d5 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 12 Oct 2019 13:40:52 +0200 Subject: [PATCH] Disabled close folders on IMAP store failure --- app/src/main/java/eu/faircode/email/MailService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/MailService.java b/app/src/main/java/eu/faircode/email/MailService.java index 764b4c7f40..725998fc45 100644 --- a/app/src/main/java/eu/faircode/email/MailService.java +++ b/app/src/main/java/eu/faircode/email/MailService.java @@ -108,6 +108,7 @@ public class MailService implements AutoCloseable { properties.put("mail." + protocol + ".connectionpooltimeout", Integer.toString(POOL_TIMEOUT)); properties.put("mail." + protocol + ".finalizecleanclose", "false"); + properties.put("mail." + protocol + ".closefoldersonstorefailure", "false"); // https://tools.ietf.org/html/rfc4978 // https://docs.oracle.com/javase/8/docs/api/java/util/zip/Deflater.html