dovecot-2.2: sdbox: next-uid may have been set wrong when rebuil...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jan 16 09:15:48 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/353a2a6406aa
changeset: 15649:353a2a6406aa
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jan 16 09:15:38 2013 +0200
description:
sdbox: next-uid may have been set wrong when rebuilding indexes for empty mailbox.

diffstat:

 src/lib-storage/index/index-rebuild.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5eedc2b9cb23 -r 353a2a6406aa src/lib-storage/index/index-rebuild.c
--- a/src/lib-storage/index/index-rebuild.c	Wed Jan 16 08:01:40 2013 +0200
+++ b/src/lib-storage/index/index-rebuild.c	Wed Jan 16 09:15:38 2013 +0200
@@ -124,7 +124,7 @@
 	else if (backup_hdr != NULL && backup_hdr->next_uid != 0)
 		next_uid = backup_hdr->next_uid;
 	else
-		next_uid = gen_uidvalidity(ctx->box->list);
+		next_uid = 1;
 	if (next_uid > trans_hdr->next_uid) {
 		mail_index_update_header(ctx->trans,
 			offsetof(struct mail_index_header, next_uid),


More information about the dovecot-cvs mailing list