[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.93, 1.94 maildir-uidlist.c, 1.62, 1.63

tss at dovecot.org tss at dovecot.org
Fri Mar 23 05:07:11 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv22845

Modified Files:
	maildir-sync.c maildir-uidlist.c 
Log Message:
Last fix broke creating new uidlists.



Index: maildir-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- maildir-sync.c	21 Mar 2007 19:22:39 -0000	1.93
+++ maildir-sync.c	23 Mar 2007 03:07:08 -0000	1.94
@@ -1293,7 +1293,7 @@
 		if (uid_validity == 0) {
 			uid_validity = ioloop_time;
 			maildir_uidlist_set_uid_validity(mbox->uidlist,
-							 uid_validity, 1);
+							 uid_validity, 0);
 		}
 	} else if (uid_validity == 0) {
 		maildir_uidlist_set_uid_validity(mbox->uidlist,

Index: maildir-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-uidlist.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- maildir-uidlist.c	21 Mar 2007 19:22:39 -0000	1.62
+++ maildir-uidlist.c	23 Mar 2007 03:07:08 -0000	1.63
@@ -542,7 +542,8 @@
 				      uint32_t uid_validity, uint32_t next_uid)
 {
 	uidlist->uid_validity = uid_validity;
-	uidlist->next_uid = next_uid;
+	if (next_uid != 0)
+		uidlist->next_uid = next_uid;
 }
 
 uint32_t maildir_uidlist_get_next_uid(struct maildir_uidlist *uidlist)



More information about the dovecot-cvs mailing list