Small change

pull/215/head
M66B 4 months ago
parent c78984796c
commit d05164c260

@ -3644,7 +3644,7 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
long[] luid = UIDSet.toArray(uidset);
Message[] msgs = createMessagesForUIDs(luid);
for (Message m : msgs) {
// Avoid creating seqnums
// Avoid creating/updating seqnums
if (m != null)
((IMAPMessage)m).setExpunged(true);
}

@ -218,7 +218,7 @@ public class MessageCache {
while (oldnum <= size) {
// is message expunged?
IMAPMessage m = getMessage(oldnum);
if (seqnumOf(oldnum) <= 0 || (m !=null && m.isExpunged())) {
if (seqnumOf(oldnum) <= 0 || (m != null && m.isExpunged())) {
mlist.add(m);
} else {
// keep this message

Loading…
Cancel
Save