|
|
@ -3644,8 +3644,9 @@ 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) {
|
|
|
|
if (m.getMessageNumber() > 0)
|
|
|
|
// Avoid creating seqnums
|
|
|
|
messageCache.expungeMessage(m.getMessageNumber());
|
|
|
|
if (m != null)
|
|
|
|
|
|
|
|
((IMAPMessage)m).setExpunged(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (doExpungeNotification && hasMessageCountListener) {
|
|
|
|
if (doExpungeNotification && hasMessageCountListener) {
|
|
|
|
notifyMessageRemovedListeners(true, msgs);
|
|
|
|
notifyMessageRemovedListeners(true, msgs);
|
|
|
|