changeset 21610:50c907a9d31b

lib-mail: Fix matched-parameter in HEADER_FILTER_ADD_MISSING_EOH callback The matched-parameter in the regular EOH callback is the reverse of what it's in v2.3 tree. So preserve it here.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 20 Feb 2017 00:26:28 +0200
parents 3c0773815e3e
children 20d399c6aea9
files src/lib-mail/istream-header-filter.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-mail/istream-header-filter.c	Sun Feb 19 23:03:40 2017 +0100
+++ b/src/lib-mail/istream-header-filter.c	Mon Feb 20 00:26:28 2017 +0200
@@ -306,7 +306,7 @@
 			return -1;
 		}
 		if (!mstream->seen_eoh && mstream->add_missing_eoh) {
-			bool matched = FALSE;
+			bool matched = TRUE;
 
 			mstream->seen_eoh = TRUE;
 
@@ -326,7 +326,7 @@
 				mstream->callbacks_called = TRUE;
 			}
 
-			if (matched) {
+			if (!matched) {
 				mstream->seen_eoh = FALSE;
 			} else {
 				add_eol(mstream, mstream->last_orig_crlf);