dovecot: If uidlist isn't version 3, we have to recreate it inst...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 12 04:24:30 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/874428d05272
changeset: 5957:874428d05272
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 12 04:24:00 2007 +0300
description:
If uidlist isn't version 3, we have to recreate it instead of appending.

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/maildir/maildir-uidlist.c |    1 +

diffs (11 lines):

diff -r fc75386a57ab -r 874428d05272 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Jul 12 03:24:35 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Thu Jul 12 04:24:00 2007 +0300
@@ -954,6 +954,7 @@ static int maildir_uidlist_sync_update(s
 	uoff_t file_size;
 
 	if (ctx->uidlist->recreate || uidlist->fd == -1 ||
+	    uidlist->version != 3 ||
 	    (uidlist->read_records_count + ctx->new_files_count) *
 	    UIDLIST_COMPRESS_PERCENTAGE / 100 >= array_count(&uidlist->records))
 		return maildir_uidlist_recreate(uidlist);


More information about the dovecot-cvs mailing list