Special case for onet.pl failing to copy messages

This commit is contained in:
M66B 2020-12-26 10:00:37 +01:00
parent 5afbbaf1f6
commit 3d75ab9646
1 changed files with 11 additions and 0 deletions

View File

@ -470,6 +470,17 @@ class Core {
continue; continue;
} }
if (EntityOperation.MOVE.equals(op.name) &&
"imap.poczta.onet.pl".equals(account.host)) {
ops.remove(op);
db.operation().deleteOperation(op.id);
if (message != null) {
db.message().setMessageUiHide(message.id, false);
db.message().setMessageError(message.id, Log.formatThrowable(ex, false));
}
continue;
}
if (op.tries >= TOTAL_RETRY_MAX || if (op.tries >= TOTAL_RETRY_MAX ||
ex instanceof OutOfMemoryError || ex instanceof OutOfMemoryError ||
ex instanceof FileNotFoundException || ex instanceof FileNotFoundException ||