Continue after deleting deleted message

pull/153/head
M66B 6 years ago
parent 690f46015c
commit 67757b6fc3

@ -437,7 +437,10 @@ class Core {
Log.i(folder.name + " append confirmed uid=" + duid);
else {
Log.i(folder.name + " deleting uid=" + duid + " msgid=" + message.msgid);
try {
idelete.setFlag(Flags.Flag.DELETED, true);
} catch (MessageRemovedException ignored) {
}
}
}
ifolder.expunge();
@ -550,7 +553,10 @@ class Core {
// Delete source
if (!copy) {
try {
imessage.setFlag(Flags.Flag.DELETED, true);
} catch (MessageRemovedException ignored) {
}
ifolder.expunge();
}
} finally {
@ -569,7 +575,10 @@ class Core {
Message[] imessages = ifolder.search(new MessageIDTerm(message.msgid));
for (Message imessage : imessages) {
Log.i(folder.name + " deleting uid=" + message.uid + " msgid=" + message.msgid);
try {
imessage.setFlag(Flags.Flag.DELETED, true);
} catch (MessageRemovedException ignored) {
}
}
ifolder.expunge();

Loading…
Cancel
Save