diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 1d7e1eb05c..1d679bfddc 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1819,7 +1819,11 @@ class Core { if (info.total > 0) { MessageSet[] sets = new MessageSet[]{new MessageSet(1, info.total)}; EntityLog.log(context, folder.name + " purging=" + MessageSet.toString(sets)); - protocol.storeFlags(sets, new Flags(Flags.Flag.DELETED), true); + try { + protocol.storeFlags(sets, new Flags(Flags.Flag.DELETED), true); + } catch (ProtocolException ex) { + throw new ProtocolException("Purge=" + MessageSet.toString(sets), ex); + } } return null; }