Simplification

pull/194/head
M66B 4 years ago
parent 379accf8fd
commit a7346d58b6

@ -2457,12 +2457,9 @@ class Core {
int expunge = 0; int expunge = 0;
for (int i = 0; i < imessages.length && state.isRunning() && state.isRecoverable(); i++) for (int i = 0; i < imessages.length && state.isRunning() && state.isRecoverable(); i++)
try { try {
if (imessages[i].isSet(Flags.Flag.DELETED)) { if (perform_expunge && imessages[i].isSet(Flags.Flag.DELETED))
if (perform_expunge) expunge++;
expunge++; else
else
uids.remove(ifolder.getUID(imessages[i]));
} else
uids.remove(ifolder.getUID(imessages[i])); uids.remove(ifolder.getUID(imessages[i]));
} catch (MessageRemovedException ex) { } catch (MessageRemovedException ex) {
Log.w(folder.name, ex); Log.w(folder.name, ex);

Loading…
Cancel
Save