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

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 3 19:47:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/25c9df95fda6
changeset: 9280:25c9df95fda6
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 7615ccab3829 -r 25c9df95fda6 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Mon Aug 03 00:18:30 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Mon Aug 03 12:47:37 2009 -0400
@@ -758,7 +758,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