Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5941:90de57daa0d4 HEAD
Fixed UIDVALIDITY changed error when dovecot-uidlist file didn't exist but
index already had UIDVALIDITY.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 10 Jul 2007 20:20:39 +0300 |
parents | b985e2127a2d |
children | bf536b8dbc51 |
files | src/lib-storage/index/maildir/maildir-uidlist.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Mon Jul 09 07:31:28 2007 +0300 +++ b/src/lib-storage/index/maildir/maildir-uidlist.c Tue Jul 10 20:20:39 2007 +0300 @@ -1060,11 +1060,6 @@ 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); @@ -1082,6 +1077,8 @@ struct maildir_uidlist_sync_ctx *ctx = *_ctx; int ret = ctx->failed ? -1 : 0; + i_assert(ctx->uidlist->uid_validity != 0); + *_ctx = NULL; if (!ctx->finished)