Cancel POP3 sync on error

This commit is contained in:
M66B
2021-10-12 18:26:53 +02:00
parent 103e97004b
commit 2b005e188a

View File

@@ -536,7 +536,9 @@ class Core {
EntityOperation.RAW.equals(op.name) ||
EntityOperation.ATTACHMENT.equals(op.name) ||
(EntityOperation.ADD.equals(op.name) &&
EntityFolder.DRAFTS.equals(folder.type))) {
EntityFolder.DRAFTS.equals(folder.type)) ||
(EntityOperation.SYNC.equals(op.name) &&
account.protocol == EntityAccount.TYPE_POP)) {
// 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