[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.157, 1.158

cras at dovecot.org cras at dovecot.org
Tue Apr 26 22:10:49 EEST 2005


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

Modified Files:
	mbox-sync.c 
Log Message:
Don't always sync full mbox if first message is the pseudo mail.



Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- mbox-sync.c	26 Apr 2005 14:52:02 -0000	1.157
+++ mbox-sync.c	26 Apr 2005 19:10:47 -0000	1.158
@@ -995,12 +995,12 @@
 				uid = mail_ctx->mail.uid = rec->uid;
 		}
 
-		if (rec == NULL) {
-			/* from now on, don't skip anything */
-			partial = FALSE;
-		}
-
 		if (!mail_ctx->pseudo) {
+			if (rec == NULL) {
+				/* from now on, don't skip anything */
+				partial = FALSE;
+			}
+
 			/* get all sync records related to this message */
 			if (mbox_sync_read_index_syncs(sync_ctx, uid,
 						       &expunged) < 0)



More information about the dovecot-cvs mailing list