dovecot-1.1: mbox: We always add end-of-headers line while savin...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 2 21:20:26 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/d5588b153cf6
changeset: 7599:d5588b153cf6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 02 21:20:22 2008 +0300
description:
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.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/mbox/mbox-save.c |    3 ++-

diffs (13 lines):

diff -r 50120b047f0a -r d5588b153cf6 src/lib-storage/index/mbox/mbox-save.c
--- 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 @@ mbox_save_get_input_stream(struct mbox_s
 
 	/* 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);


More information about the dovecot-cvs mailing list