diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 9846fb57a4..9cad0cb2d0 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -39,6 +39,7 @@ import androidx.preference.PreferenceManager; import com.bugsnag.android.BreadcrumbType; import com.bugsnag.android.Bugsnag; +import com.sun.mail.iap.BadCommandException; import com.sun.mail.iap.CommandFailedException; import com.sun.mail.iap.ConnectionException; import com.sun.mail.iap.Response; @@ -265,7 +266,11 @@ class Core { ex instanceof FileNotFoundException || ex instanceof FolderNotFoundException || ex instanceof IllegalArgumentException || + ex.getCause() instanceof BadCommandException || ex.getCause() instanceof CommandFailedException) { + // com.sun.mail.iap.BadCommandException: B13 BAD [TOOBIG] Message too large + // com.sun.mail.iap.CommandFailedException: AY3 NO [CANNOT] Cannot APPEND to a SPAM folder + // com.sun.mail.iap.CommandFailedException: B16 NO [ALERT] Cannot MOVE messages out of the Drafts folder Log.w("Unrecoverable"); // There is no use in repeating