Small change

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

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

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

Loading…
Cancel
Save