# HG changeset patch # User Timo Sirainen # Date 1146575113 -10800 # Node ID edd923a44ef7a979b78f00516bf7ba677591be5b # Parent 3c8b191b00194f823091989169bbbb8db5e38ce2 Offset update fix diff -r 3c8b191b0019 -r edd923a44ef7 src/lib-storage/index/mbox/mbox-sync-update.c --- a/src/lib-storage/index/mbox/mbox-sync-update.c Tue May 02 14:11:05 2006 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-update.c Tue May 02 16:05:13 2006 +0300 @@ -53,7 +53,7 @@ i_assert(ctx->mail.offset + ctx->mail.space <= ctx->hdr_offset + pos || ctx->mail.offset > ctx->hdr_offset + pos + have); - if (ctx->mail.offset > pos) { + if (ctx->mail.offset > ctx->hdr_offset + pos) { /* free space offset moves */ ctx->mail.offset += diff; }