]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: We always add end-of-headers line while saving the message, so make
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Jun 2008 18:20:22 +0000 (21:20 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Jun 2008 18:20:22 +0000 (21:20 +0300)
sure the parsing code also sees it and updates cache correctly.

--HG--
branch : HEAD

src/lib-storage/index/mbox/mbox-save.c

index e270326f03e5e42a20d8a46eaacc47d375e02901..3e591e5177c8e5c1f974103de31d28084425aaa4 100644 (file)
@@ -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);