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

tss at dovecot.org tss at dovecot.org
Fri Oct 13 18:42:06 UTC 2006


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

Modified Files:
      Tag: branch_1_0
	mbox-sync-rewrite.c 
Log Message:
Adding space to header could have broken things. This fixes at least
"X-IMAPbase uid-last unexpectedly lost in mbox file" errors.



Index: mbox-sync-rewrite.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync-rewrite.c,v
retrieving revision 1.62.2.2
retrieving revision 1.62.2.3
diff -u -d -r1.62.2.2 -r1.62.2.3
--- mbox-sync-rewrite.c	24 Jun 2006 20:54:34 -0000	1.62.2.2
+++ mbox-sync-rewrite.c	13 Oct 2006 17:42:03 -0000	1.62.2.3
@@ -118,9 +118,8 @@
 
 	/* pos points to end of header now, and start_pos to beginning
 	   of whitespace. */
+	mbox_sync_move_buffer(ctx, pos, size, 0);
 
-	buffer_copy(ctx->header, pos + size,
-		    ctx->header, pos, (size_t)-1);
 	p = buffer_get_space_unsafe(ctx->header, pos, size);
 	memset(p, ' ', size);
 



More information about the dovecot-cvs mailing list