dovecot-1.1: mbox: Don't use UIDVALIDITY 1 for all new mailboxes.

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 7 23:03:15 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/c4b32e6b9fb0
changeset: 8317:c4b32e6b9fb0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 07 16:02:51 2009 -0400
description:
mbox: Don't use UIDVALIDITY 1 for all new mailboxes.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/mbox/mbox-sync.c |    2 +-

diffs (12 lines):

diff -r 2f9d957332b6 -r c4b32e6b9fb0 src/lib-storage/index/mbox/mbox-sync.c
--- a/src/lib-storage/index/mbox/mbox-sync.c	Sat Jun 27 22:25:24 2009 -0400
+++ b/src/lib-storage/index/mbox/mbox-sync.c	Tue Jul 07 16:02:51 2009 -0400
@@ -1406,7 +1406,7 @@ static int mbox_sync_update_index_header
 	if (sync_ctx->base_uid_validity == 0) {
 		sync_ctx->base_uid_validity = sync_ctx->hdr->uid_validity != 0 ?
 			sync_ctx->hdr->uid_validity :
-			I_MIN((unsigned int)ioloop_time, 1);
+			I_MAX((unsigned int)ioloop_time, 1);
 	}
 	if (sync_ctx->base_uid_validity != sync_ctx->hdr->uid_validity) {
 		mail_index_update_header(sync_ctx->t,


More information about the dovecot-cvs mailing list