From 8bf2b92b6b1c10b2135383a7692e2c28fb255540 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 23 Apr 2021 16:39:19 +0200 Subject: [PATCH] Folder I/O exception --- app/src/main/java/eu/faircode/email/ConnectionHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/ConnectionHelper.java b/app/src/main/java/eu/faircode/email/ConnectionHelper.java index d6aa6efe9c..1ce669e22b 100644 --- a/app/src/main/java/eu/faircode/email/ConnectionHelper.java +++ b/app/src/main/java/eu/faircode/email/ConnectionHelper.java @@ -34,6 +34,7 @@ import androidx.annotation.Nullable; import androidx.preference.PreferenceManager; import com.sun.mail.iap.ConnectionException; +import com.sun.mail.util.FolderClosedIOException; import java.io.IOException; import java.util.Arrays; @@ -374,6 +375,7 @@ public class ConnectionHelper { while (ex != null) { if (isMaxConnections(ex.getMessage()) || ex instanceof IOException || + ex instanceof FolderClosedIOException || ex instanceof ConnectionException || ex instanceof AccountsException || ex instanceof InterruptedException ||