1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Suppress folder closed / illegal state exception for messages

This commit is contained in:
M66B 2018-11-23 10:30:15 +01:00
parent d40b138c84
commit 97b74eb0d7

View file

@ -1357,10 +1357,12 @@ public class ServiceSynchronize extends LifecycleService {
db.operation().deleteOperation(op.id);
} catch (Throwable ex) {
// 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));
if (ex instanceof MessageRemovedException ||