dovecot: Fixed UIDVALIDITY changed error when dovecot-uidlist fi...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 10 20:21:09 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/90de57daa0d4
changeset: 5941:90de57daa0d4
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 10 20:20:39 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 b985e2127a2d -r 90de57daa0d4 src/lib-storage/index/maildir/maildir-uidlist.c
--- 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 @@ 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);
@@ -1081,6 +1076,8 @@ int maildir_uidlist_sync_deinit(struct m
{
struct maildir_uidlist_sync_ctx *ctx = *_ctx;
int ret = ctx->failed ? -1 : 0;
+
+ i_assert(ctx->uidlist->uid_validity != 0);
*_ctx = NULL;
More information about the dovecot-cvs
mailing list