[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-rewrite.c, 1.27, 1.28

cras at dovecot.org cras at dovecot.org
Mon Aug 23 10:51:55 EEST 2004


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

Modified Files:
	mbox-sync-rewrite.c 
Log Message:
sync fix



Index: mbox-sync-rewrite.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- mbox-sync-rewrite.c	31 Jul 2004 00:33:53 -0000	1.27
+++ mbox-sync-rewrite.c	23 Aug 2004 07:51:53 -0000	1.28
@@ -331,8 +331,8 @@
 	mail_ctx.uidl = sync_ctx->uidl;
 	str_truncate(mail_ctx.uidl, 0);
 
-	hdr_offset = mails[idx].offset;
-	mail_ctx.mail.offset = mails[idx].offset;
+	hdr_offset = istream_raw_mbox_get_header_offset(sync_ctx->input);
+	mail_ctx.mail.offset = hdr_offset;
 	mail_ctx.mail.body_size = mails[idx].body_size;
 
 	/* mbox_sync_parse_next_mail() checks that UIDs are growing,



More information about the dovecot-cvs mailing list