From 9ea5094ff800ce0872a0496532eea826a4c52b2f Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 14 Aug 2024 10:21:55 +0200 Subject: [PATCH] Debug VANISHED --- app/src/main/java/com/sun/mail/imap/IMAPFolder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/sun/mail/imap/IMAPFolder.java b/app/src/main/java/com/sun/mail/imap/IMAPFolder.java index 07244b9f3f..315bbc155f 100644 --- a/app/src/main/java/com/sun/mail/imap/IMAPFolder.java +++ b/app/src/main/java/com/sun/mail/imap/IMAPFolder.java @@ -3635,8 +3635,10 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler { // response // "VANISHED" SP ["(EARLIER)"] SP known-uids - ir.readAtomStringList(); // Skip EARLIER + // https://datatracker.ietf.org/doc/html/rfc7162#section-3.2.10 + String[] earlier = ir.readAtomStringList(); // Skip EARLIER String uids = ir.readAtom(); + eu.faircode.email.Log.w("VANISHED earlier=" + (earlier != null) + " uids=" + uids); UIDSet[] uidset = UIDSet.parseUIDSets(uids); List msgs = new ArrayList<>(); for (long uid : UIDSet.toArray(uidset)) {