[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.54, 1.55

cras at procontrol.fi cras at procontrol.fi
Fri Jul 2 15:14:16 EEST 2004


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

Modified Files:
	mbox-sync.c 
Log Message:
fix for mboxes with pseudo header mail



Index: mbox-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- mbox-sync.c	28 Jun 2004 22:03:24 -0000	1.54
+++ mbox-sync.c	2 Jul 2004 12:14:13 -0000	1.55
@@ -738,6 +738,11 @@
 
         /* set to -1, since it's always increased later */
 	sync_ctx->seq = seq1-1;
+	if (sync_ctx->seq == 0 && offset != 0) {
+		/* this mbox has pseudo mail which contains the X-IMAP header */
+		sync_ctx->seq++;
+	}
+
         sync_ctx->idx_seq = seq1;
 	sync_ctx->dest_first_mail = sync_ctx->seq == 0;
 	if (istream_raw_mbox_seek(sync_ctx->input, offset) < 0) {



More information about the dovecot-cvs mailing list