|
|
|
@ -3640,18 +3640,20 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler {
|
|
|
|
|
String uids = ir.readAtom();
|
|
|
|
|
eu.faircode.email.Log.w("VANISHED earlier=" + (earlier != null) + " uids=" + uids);
|
|
|
|
|
UIDSet[] uidset = UIDSet.parseUIDSets(uids);
|
|
|
|
|
List<Message> msgs = new ArrayList<>();
|
|
|
|
|
for (long uid : UIDSet.toArray(uidset)) {
|
|
|
|
|
Message m = uidTable.get(uid);
|
|
|
|
|
if (m != null && m.getMessageNumber() > 0) {
|
|
|
|
|
realTotal--;
|
|
|
|
|
messageCache.expungeMessage(m.getMessageNumber());
|
|
|
|
|
msgs.add(m);
|
|
|
|
|
if (uidset != null) {
|
|
|
|
|
List<Message> msgs = new ArrayList<>();
|
|
|
|
|
for (long uid : UIDSet.toArray(uidset)) {
|
|
|
|
|
Message m = uidTable.get(uid);
|
|
|
|
|
if (m != null && m.getMessageNumber() > 0) {
|
|
|
|
|
realTotal--;
|
|
|
|
|
messageCache.expungeMessage(m.getMessageNumber());
|
|
|
|
|
msgs.add(m);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!msgs.isEmpty() &&
|
|
|
|
|
doExpungeNotification && hasMessageCountListener)
|
|
|
|
|
notifyMessageRemovedListeners(true, msgs.toArray(new Message[0]));
|
|
|
|
|
}
|
|
|
|
|
if (!msgs.isEmpty() &&
|
|
|
|
|
doExpungeNotification && hasMessageCountListener)
|
|
|
|
|
notifyMessageRemovedListeners(true, msgs.toArray(new Message[0]));
|
|
|
|
|
/*
|
|
|
|
|
String[] s = ir.readAtomStringList();
|
|
|
|
|
if (s == null) { // no (EARLIER)
|
|
|
|
|