1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Cancel add operation after two tries

This commit is contained in:
M66B 2022-09-30 12:03:14 +02:00
parent 82e7dc3b47
commit c6c5419a72

View file

@ -616,8 +616,7 @@ class Core {
EntityOperation.BODY.equals(op.name)) ||
EntityOperation.ATTACHMENT.equals(op.name) ||
((op.tries >= LOCAL_RETRY_MAX || attachments > 0) &&
EntityOperation.ADD.equals(op.name) &&
EntityFolder.DRAFTS.equals(folder.type)) ||
EntityOperation.ADD.equals(op.name)) ||
(op.tries >= LOCAL_RETRY_MAX &&
EntityOperation.SYNC.equals(op.name) &&
(account.protocol == EntityAccount.TYPE_POP ||