Retry mailbox selected READ-ONLY

This commit is contained in:
M66B 2021-05-12 17:14:27 +02:00
parent 5d3cf954a8
commit 79ffbc8a63
1 changed files with 4 additions and 1 deletions

View File

@ -519,7 +519,10 @@ class Core {
ex instanceof SQLiteConstraintException ||
(!ConnectionHelper.isIoError(ex) &&
(ex.getCause() instanceof BadCommandException ||
ex.getCause() instanceof CommandFailedException /* NO */)) ||
ex.getCause() instanceof CommandFailedException /* NO */) &&
// https://sebastian.marsching.com/wiki/Network/Zimbra#Mailbox_Selected_READ-ONLY_Error_in_Thunderbird
(ex.getMessage() == null ||
!ex.getMessage().contains("mailbox selected READ-ONLY"))) ||
MessageHelper.isRemoved(ex) ||
EntityOperation.HEADERS.equals(op.name) ||
EntityOperation.RAW.equals(op.name) ||