# HG changeset patch # User Timo Sirainen # Date 1487543188 -7200 # Node ID 50c907a9d31b13f1506f0a11193804f2e194f85d # Parent 3c0773815e3e6aef458e868b4ce8168a338b2d1e 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. diff -r 3c0773815e3e -r 50c907a9d31b src/lib-mail/istream-header-filter.c --- 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);