From: Timo Sirainen Date: Mon, 2 Nov 2009 23:11:48 +0000 (-0500) Subject: mbox: Fixed mailbox_update() to update next-uid properly. X-Git-Tag: 2.0.alpha3~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c73f1d91e6c953b072b47c0bbb5a1d46234ad81;p=thirdparty%2Fdovecot%2Fcore.git mbox: Fixed mailbox_update() to update next-uid properly. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-sync.c b/src/lib-storage/index/mbox/mbox-sync.c index d901dfd77f..b6486991c2 100644 --- a/src/lib-storage/index/mbox/mbox-sync.c +++ b/src/lib-storage/index/mbox/mbox-sync.c @@ -972,6 +972,7 @@ static void mbox_sync_hdr_update(struct mbox_sync_context *sync_ctx, if (update->min_next_uid != 0 && sync_ctx->base_uid_last <= update->min_next_uid) { sync_ctx->base_uid_last = update->min_next_uid-1; + sync_ctx->next_uid = update->min_next_uid; mail_ctx->imapbase_rewrite = TRUE; mail_ctx->need_rewrite = TRUE; }