dovecot-2.2: mbox: Fixed mailbox_update() to not shrink uidnext.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Feb 20 16:03:59 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/808a64899e8a
changeset: 15863:808a64899e8a
user: Timo Sirainen <tss at iki.fi>
date: Wed Feb 20 16:03:53 2013 +0200
description:
mbox: Fixed mailbox_update() to not shrink uidnext.
diffstat:
src/lib-storage/index/mbox/mbox-sync.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 8e992ae76c45 -r 808a64899e8a src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c Wed Feb 20 15:56:56 2013 +0200
+++ b/src/lib-storage/index/mbox/mbox-sync.c Wed Feb 20 16:03:53 2013 +0200
@@ -975,7 +975,8 @@
mail_ctx->need_rewrite = TRUE;
}
if (update->min_next_uid != 0 &&
- sync_ctx->base_uid_last <= update->min_next_uid) {
+ sync_ctx->base_uid_last+1 < update->min_next_uid) {
+ i_assert(sync_ctx->next_uid <= 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;
More information about the dovecot-cvs
mailing list