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

cras at dovecot.org cras at dovecot.org
Thu Oct 7 23:14:30 EEST 2004


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

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



Index: mbox-sync-rewrite.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- mbox-sync-rewrite.c	5 Oct 2004 20:40:52 -0000	1.33
+++ mbox-sync-rewrite.c	7 Oct 2004 20:14:28 -0000	1.34
@@ -320,7 +320,7 @@
 		(mail_ctx.body_offset - mail_ctx.hdr_offset);
 	i_assert(need_space == (uoff_t)-mails[idx].space);
 
-	if (mail_ctx.mail.space == 0) {
+	if (mails[idx].space == 0) {
 		/* don't touch spacing */
 	} else if (padding < (uoff_t)mail_ctx.mail.space) {
 		mbox_sync_headers_remove_space(&mail_ctx, mail_ctx.mail.space -
@@ -360,8 +360,6 @@
 	return 0;
 }
 
-/* extra_space specifies how many bytes from last_seq's space will be left
-   over after all the rewrites. */
 int mbox_sync_rewrite(struct mbox_sync_context *sync_ctx,
 		      uoff_t end_offset, uoff_t move_diff, uoff_t extra_space,
 		      uint32_t first_seq, uint32_t last_seq)



More information about the dovecot-cvs mailing list