Cancel SYNC when not I/O error

This commit is contained in:
M66B 2022-02-18 10:12:08 +01:00
parent b060d95116
commit 0d248e9265
1 changed files with 2 additions and 1 deletions

View File

@ -596,7 +596,8 @@ class Core {
EntityFolder.DRAFTS.equals(folder.type)) ||
(op.tries >= LOCAL_RETRY_MAX &&
EntityOperation.SYNC.equals(op.name) &&
account.protocol == EntityAccount.TYPE_POP)) {
(account.protocol == EntityAccount.TYPE_POP ||
!ConnectionHelper.isIoError(ex)))) {
// com.sun.mail.iap.BadCommandException: BAD [TOOBIG] Message too large
// com.sun.mail.iap.CommandFailedException: NO [CANNOT] Cannot APPEND to a SPAM folder
// com.sun.mail.iap.CommandFailedException: NO [ALERT] Cannot MOVE messages out of the Drafts folder