mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Suppress folder closed / illegal state exception for messages
This commit is contained in:
parent
d40b138c84
commit
97b74eb0d7
1 changed files with 5 additions and 3 deletions
|
@ -1357,10 +1357,12 @@ public class ServiceSynchronize extends LifecycleService {
|
||||||
db.operation().deleteOperation(op.id);
|
db.operation().deleteOperation(op.id);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
// TODO: SMTP response codes: https://www.ietf.org/rfc/rfc821.txt
|
// TODO: SMTP response codes: https://www.ietf.org/rfc/rfc821.txt
|
||||||
if (ex instanceof SendFailedException)
|
reportError(null, folder.name, ex);
|
||||||
reportError(null, folder.name, ex);
|
|
||||||
|
|
||||||
if (message != null && !(ex instanceof MessageRemovedException))
|
if (message != null &&
|
||||||
|
!(ex instanceof MessageRemovedException) &&
|
||||||
|
!(ex instanceof FolderClosedException) &&
|
||||||
|
!(ex instanceof IllegalStateException))
|
||||||
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
|
db.message().setMessageError(message.id, Helper.formatThrowable(ex));
|
||||||
|
|
||||||
if (ex instanceof MessageRemovedException ||
|
if (ex instanceof MessageRemovedException ||
|
||||||
|
|
Loading…
Reference in a new issue