[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-sync-rewrite.c, 1.65, 1.66
tss at dovecot.org
tss at dovecot.org
Fri Oct 13 18:42:08 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv28374
Modified Files:
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.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- mbox-sync-rewrite.c 28 Jun 2006 13:10:53 -0000 1.65
+++ mbox-sync-rewrite.c 13 Oct 2006 17:42:05 -0000 1.66
@@ -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