changeset 7599:d5588b153cf6 HEAD

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.
author Timo Sirainen <tss@iki.fi>
date Mon, 02 Jun 2008 21:20:22 +0300
parents 50120b047f0a
children 09f98612f10d
files src/lib-storage/index/mbox/mbox-save.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-save.c	Mon Jun 02 21:19:26 2008 +0300
+++ b/src/lib-storage/index/mbox/mbox-save.c	Mon Jun 02 21:20:22 2008 +0300
@@ -382,7 +382,8 @@
 
 	/* 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);