|
|
@ -3643,14 +3643,11 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
|
|
|
|
if (uidset != null) {
|
|
|
|
if (uidset != null) {
|
|
|
|
List<Message> msgs = new ArrayList<>();
|
|
|
|
List<Message> msgs = new ArrayList<>();
|
|
|
|
for (long uid : UIDSet.toArray(uidset)) {
|
|
|
|
for (long uid : UIDSet.toArray(uidset)) {
|
|
|
|
IMAPMessage m = uidTable.get(uid);
|
|
|
|
Message m = uidTable.get(uid);
|
|
|
|
if (m != null && m.getMessageNumber() > 0) {
|
|
|
|
if (m != null && m.getMessageNumber() > 0) {
|
|
|
|
if (doExpungeNotification) {
|
|
|
|
realTotal--;
|
|
|
|
realTotal--;
|
|
|
|
messageCache.expungeMessage(m.getMessageNumber());
|
|
|
|
messageCache.expungeMessage(m.getMessageNumber());
|
|
|
|
msgs.add(m);
|
|
|
|
msgs.add(m);
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
m.setExpunged(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!msgs.isEmpty() &&
|
|
|
|
if (!msgs.isEmpty() &&
|
|
|
|