Show operation errors

This commit is contained in:
M66B
2018-12-01 15:13:57 +01:00
parent 30628f15f8
commit 6a81e064bf
7 changed files with 1197 additions and 7 deletions

View File

@@ -1335,6 +1335,7 @@ public class ServiceSynchronize extends LifecycleService {
if (message == null)
throw new MessageRemovedException();
db.operation().setOperationError(op.id, null);
db.message().setMessageError(message.id, null);
if (message.uid == null &&
@@ -1388,6 +1389,7 @@ public class ServiceSynchronize extends LifecycleService {
// TODO: SMTP response codes: https://www.ietf.org/rfc/rfc821.txt
reportError(null, folder.name, ex);
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
if (message != null &&
!(ex instanceof MessageRemovedException) &&
!(ex instanceof FolderClosedException) &&