dovecot-1.0: Fixed UIDVALIDITY changed error when dovecot-uidlis...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jul 10 20:20:57 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/90ea01bfaf82
changeset: 5339:90ea01bfaf82
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jul 10 20:20:40 2007 +0300
description:
Fixed UIDVALIDITY changed error when dovecot-uidlist file didn't exist but
index already had UIDVALIDITY.

diffstat:

1 file changed, 2 insertions(+), 5 deletions(-)
src/lib-storage/index/maildir/maildir-uidlist.c |    7 ++-----

diffs (24 lines):

diff -r 5f6e24834919 -r 90ea01bfaf82 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Sun Jul 08 19:45:58 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Tue Jul 10 20:20:40 2007 +0300
@@ -958,11 +958,6 @@ static void maildir_uidlist_swap(struct 
 
 void maildir_uidlist_sync_finish(struct maildir_uidlist_sync_ctx *ctx)
 {
-	if (ctx->uidlist->uid_validity == 0) {
-		/* saving a message to a newly created maildir */
-		ctx->uidlist->uid_validity = ioloop_time;
-	}
-
 	if (!ctx->partial) {
 		if (!ctx->failed)
 			maildir_uidlist_swap(ctx);
@@ -980,6 +975,8 @@ int maildir_uidlist_sync_deinit(struct m
 	struct maildir_uidlist_sync_ctx *ctx = *_ctx;
 	bool unlocked = FALSE;
 	int ret = ctx->failed ? -1 : 0;
+
+	i_assert(ctx->uidlist->uid_validity != 0);
 
 	*_ctx = NULL;
 


More information about the dovecot-cvs mailing list