Consider command failed as unrecoverable

pull/156/head
M66B 6 years ago
parent 6b74e15218
commit 1b948277f9

@ -19,6 +19,7 @@ import androidx.annotation.NonNull;
import androidx.core.app.NotificationCompat;
import androidx.preference.PreferenceManager;
import com.sun.mail.iap.CommandFailedException;
import com.sun.mail.iap.ConnectionException;
import com.sun.mail.iap.Response;
import com.sun.mail.imap.AppendUID;
@ -240,7 +241,8 @@ class Core {
if (ex instanceof OutOfMemoryError ||
ex instanceof MessageRemovedException ||
ex instanceof FolderNotFoundException ||
ex instanceof IllegalArgumentException) {
ex instanceof IllegalArgumentException ||
ex.getCause() instanceof CommandFailedException) {
Log.w("Unrecoverable");
// There is no use in repeating

Loading…
Cancel
Save