Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4410:46710be9f4bf HEAD
If mbox headers have CRLF linefeeds, handle them properly instead of
corrupting the headers.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 17 Jun 2006 20:11:30 +0300 |
parents | 6744d3eb4113 |
children | a2420b745cd5 |
files | src/lib-storage/index/mbox/mbox-sync-parse.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-sync-parse.c Sat Jun 17 20:10:38 2006 +0300 +++ b/src/lib-storage/index/mbox/mbox-sync-parse.c Sat Jun 17 20:11:30 2006 +0300 @@ -510,8 +510,11 @@ buffer_append(ctx->header, hdr->value, hdr->value_len); } - if (!hdr->no_newline) + if (!hdr->no_newline) { + if (hdr->crlf_newline) + str_append_c(ctx->header, '\r'); str_append_c(ctx->header, '\n'); + } } i_assert(ret != 0); message_parse_header_deinit(&hdr_ctx);