[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.154, 1.155

cras at dovecot.org cras at dovecot.org
Tue Apr 26 12:43:01 EEST 2005


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

Modified Files:
	mbox-sync.c 
Log Message:
If X-UIDs hadn't yet been written, we resynced everything after the first
message we had to sync.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -d -r1.154 -r1.155
--- mbox-sync.c	26 Apr 2005 08:11:37 -0000	1.154
+++ mbox-sync.c	26 Apr 2005 09:42:59 -0000	1.155
@@ -989,11 +989,6 @@
 				return -1;
 		}
 
-		if (rec == NULL) {
-			/* from now on, don't skip anything */
-			partial = FALSE;
-		}
-
 		if (ret == 0) {
 			/* UID found but it's broken */
 			uid = 0;
@@ -1015,6 +1010,11 @@
 				uid = mail_ctx->mail.uid = rec->uid;
 		}
 
+		if (rec == NULL) {
+			/* from now on, don't skip anything */
+			partial = FALSE;
+		}
+
 		if (!mail_ctx->pseudo && !uidvalidity_changed) {
 			/* get all sync records related to this message */
 			if (mbox_sync_read_index_syncs(sync_ctx, uid,



More information about the dovecot-cvs mailing list