changeset 9612:c4b2e4f4ff79 HEAD

maildir: If uidlist isn't read, don't mark its UIDs as being known when saving.
author Timo Sirainen <tss@iki.fi>
date Tue, 07 Sep 2010 16:23:03 +0100
parents 63857c491143
children d2da54c3d829
files src/lib-storage/index/maildir/maildir-uidlist.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Wed Sep 01 16:43:00 2010 +0100
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Tue Sep 07 16:23:03 2010 +0100
@@ -1796,7 +1796,7 @@
 		recs[dest]->flags &= ~MAILDIR_UIDLIST_REC_FLAG_MOVED;
 	}
 
-	if (ctx->uidlist->locked_refresh)
+	if (ctx->uidlist->locked_refresh && ctx->uidlist->initial_read)
 		ctx->uidlist->last_seen_uid = ctx->uidlist->next_uid-1;
 
 	ctx->new_files_count = 0;