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