From: Markus Valentin Date: Mon, 28 Feb 2022 12:15:06 +0000 (+0100) Subject: imapc: imapc_mailbox_msgmap_update() - Set new_message_r X-Git-Tag: 2.3.19~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5a07bd1c4b3c17f5471c8cd2b431df3cc7b3f9a;p=thirdparty%2Fdovecot%2Fcore.git imapc: imapc_mailbox_msgmap_update() - Set new_message_r In case a message has not yet been keep the reply till syncing and do not discard it right away. --- diff --git a/src/lib-storage/index/imapc/imapc-mailbox.c b/src/lib-storage/index/imapc/imapc-mailbox.c index f6b318b0bb..ff915d9611 100644 --- a/src/lib-storage/index/imapc/imapc-mailbox.c +++ b/src/lib-storage/index/imapc/imapc-mailbox.c @@ -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 "