]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: imapc_mailbox_msgmap_update() - Set new_message_r
authorMarkus Valentin <markus.valentin@open-xchange.com>
Mon, 28 Feb 2022 12:15:06 +0000 (13:15 +0100)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Mon, 14 Mar 2022 13:06:49 +0000 (14:06 +0100)
In case a message has not yet been keep the reply till syncing and do
not discard it right away.

src/lib-storage/index/imapc/imapc-mailbox.c

index f6b318b0bb25de7c56a528c467f02cbca09e0b07..ff915d96118933bbc2e3308c645032fd01345929 100644 (file)
@@ -440,6 +440,8 @@ imapc_mailbox_msgmap_update(struct imapc_mailbox *mbox,
                }
                mbox->prev_skipped_rseq = rseq;
                mbox->prev_skipped_uid = fetch_uid;
+               /* Check if this uid must be added later when syncing. */
+               *new_message_r = TRUE;
        } else if (fetch_uid < imapc_msgmap_uidnext(msgmap)) {
                imapc_mailbox_set_corrupted(mbox,
                        "Expunged message reappeared in session "