mirror of https://github.com/M66B/FairEmail.git
Consider command failed as unrecoverable
This commit is contained in:
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…
Reference in New Issue