Mercurial > dovecot > core-2.2
changeset 1803:4a61ab6c980d HEAD
fix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Oct 2003 20:54:19 +0300 |
parents | fef0b4df8383 |
children | e86000107a45 |
files | src/lib-index/mbox/mbox-rewrite.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-rewrite.c Sun Oct 05 20:45:53 2003 +0300 +++ b/src/lib-index/mbox/mbox-rewrite.c Sun Oct 05 20:54:19 2003 +0300 @@ -388,6 +388,7 @@ static int mbox_write_header(struct mail_index *index, struct mail_index_record *rec, unsigned int seq, struct istream *input, struct ostream *output, + uoff_t dirty_offset, uoff_t *hdr_input_size, uoff_t body_size) { /* We need to update fields that define message flags. Standard fields @@ -459,7 +460,8 @@ /* write the x-keywords header last so it can fill the extra space with spaces. -1 is for ending \n. */ - (void)mbox_write_xkeywords(&ctx, ctx.x_keywords, input->v_offset - 1, + (void)mbox_write_xkeywords(&ctx, ctx.x_keywords, + input->v_offset - dirty_offset - 1, force_filler); i_free(ctx.x_keywords); @@ -710,6 +712,7 @@ /* write header, updating flag fields */ if (!mbox_write_header(index, rec, seq, input, output, + dirty_offset, &hdr_size, body_size)) { failed = TRUE; break;