dovecot-2.0: maildir: Don't recreate dovecot-uidlist all the time.

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 3 20:33:58 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/d7e915fc741c
changeset: 9716:d7e915fc741c
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 03 12:47:37 2009 -0400
description:
maildir: Don't recreate dovecot-uidlist all the time.

diffstat:

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

diffs (13 lines):

diff -r ddc3593a2091 -r d7e915fc741c src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Mon Aug 03 00:19:26 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Mon Aug 03 12:47:37 2009 -0400
@@ -788,7 +788,8 @@ maildir_uidlist_update_read(struct maild
 		}
 		if (uidlist->next_uid <= uidlist->prev_read_uid)
 			uidlist->next_uid = uidlist->prev_read_uid + 1;
-		if (ret > 0 && uidlist->uid_validity != orig_uid_validity) {
+		if (ret > 0 && uidlist->uid_validity != orig_uid_validity &&
+		    orig_uid_validity != 0) {
 			uidlist->recreate = TRUE;
 		} else if (ret > 0 && uidlist->next_uid < orig_next_uid) {
 			mail_storage_set_critical(storage,


More information about the dovecot-cvs mailing list