From d05164c260c0d3f648a860a5d8d6d181a9a2969e Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 16 Aug 2024 12:31:49 +0200 Subject: [PATCH] Small change --- app/src/main/java/com/sun/mail/imap/IMAPFolder.java | 2 +- app/src/main/java/com/sun/mail/imap/MessageCache.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 0fc71205b3..d8d80fac02 100644 --- a/app/src/main/java/com/sun/mail/imap/IMAPFolder.java +++ b/app/src/main/java/com/sun/mail/imap/IMAPFolder.java @@ -3644,7 +3644,7 @@ public class IMAPFolder extends Folder implements UIDFolder, ResponseHandler { long[] luid = UIDSet.toArray(uidset); Message[] msgs = createMessagesForUIDs(luid); for (Message m : msgs) { - // Avoid creating seqnums + // Avoid creating/updating seqnums if (m != null) ((IMAPMessage)m).setExpunged(true); } diff --git a/app/src/main/java/com/sun/mail/imap/MessageCache.java b/app/src/main/java/com/sun/mail/imap/MessageCache.java index 62ccc4adb8..1599096cf8 100644 --- a/app/src/main/java/com/sun/mail/imap/MessageCache.java +++ b/app/src/main/java/com/sun/mail/imap/MessageCache.java @@ -218,7 +218,7 @@ public class MessageCache { while (oldnum <= size) { // is message expunged? IMAPMessage m = getMessage(oldnum); - if (seqnumOf(oldnum) <= 0 || (m !=null && m.isExpunged())) { + if (seqnumOf(oldnum) <= 0 || (m != null && m.isExpunged())) { mlist.add(m); } else { // keep this message