From: Timo Sirainen Date: Mon, 2 Jun 2008 18:20:22 +0000 (+0300) Subject: mbox: We always add end-of-headers line while saving the message, so make X-Git-Tag: 1.1.rc8~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9bad2e72f2d4319d0717fb67883a29105e1ddb5;p=thirdparty%2Fdovecot%2Fcore.git mbox: We always add end-of-headers line while saving the message, so make sure the parsing code also sees it and updates cache correctly. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/mbox/mbox-save.c b/src/lib-storage/index/mbox/mbox-save.c index e270326f03..3e591e5177 100644 --- a/src/lib-storage/index/mbox/mbox-save.c +++ b/src/lib-storage/index/mbox/mbox-save.c @@ -382,7 +382,8 @@ mbox_save_get_input_stream(struct mbox_save_context *ctx, struct istream *input) /* filter out unwanted headers and keep track of headers' MD5 sum */ filter = i_stream_create_header_filter(input, HEADER_FILTER_EXCLUDE | - HEADER_FILTER_NO_CR, + HEADER_FILTER_NO_CR | + HEADER_FILTER_ADD_MISSING_EOH, mbox_save_drop_headers, mbox_save_drop_headers_count, save_header_callback, ctx);