Consider command failed as unrecoverable

This commit is contained in:
M66B 2019-04-29 22:05:12 +02:00
parent 6b74e15218
commit 1b948277f9
1 changed files with 3 additions and 1 deletions

View File

@ -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