I do not see any broken or truncated subject lines here.
I do see exim failing to decode this part of the quoted-printable-encoded
header:
=?UTF-8?Q?_=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8_-_Commit_by_Alexander?=
According to rfc1522
The 8-bit hexadecimal value 20 (e.g., ISO-8859-1 SPACE) may be represented
as "_" (underscore, ASCII 95.).
8-bit values which correspond to printable ASCII characters other than "=",
"?", "_" (underscore), and SPACE may be represented as those characters.
2017-04-06 23:10 GMT+03:00 Evgeniy Berdnikov <bd4@???>:
> On Thu, Apr 06, 2017 at 10:51:49PM +0300, Александр Кириллов wrote:
> > YEAP! That was it! Thanks Eugene!
> >
> > # exim -bem /path/to/sample.mail '$rh_subject'
> > Return-path taken from "Return-path:" header line
> > =?UTF-8?Q?[Test_-?=
> > =?UTF-8?Q?_=D0=9F=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=
> D0=B0_#240]?=
> > =?UTF-8?Q?_=D0=97=D0=B0=D0=B4=D0=B0=D1=87=D0=B0_=D0=B4=D0=BB=D1=8F?=
> > =?UTF-8?Q?_=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8_-_
> Commit_by_Alexander?=
> > =?UTF-8?Q?_Kirillov_[r45]?=
> >
> > # exim -bem /path/to/sample.mail '$h_subject'
> > Return-path taken from "Return-path:" header line
> > [Test - Поддержка #240] Задача для
> > =?UTF-8?Q?_=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8_-_
> Commit_by_Alexander?=
> > Kirillov [r45]
> >
> > # exim -bem /path/to/sample.mail '$bh_subject'
> > Return-path taken from "Return-path:" header line
> > [Test - Поддержка #240] Задача для
> > =?UTF-8?Q?_=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA=D0=B8_-_
> Commit_by_Alexander?=
> > Kirillov [r45]
> >
> > Does it look like an exim bug?
>
> It seems to me that string "Commit by" is different from "Commit_by",
> and I do not see any Exim bug here.
>
> Obviously, original subject line was broken (last rfc20147-encoded part
> has no terminating "?=", probably it was truncated), but this fact
> has no relevance to the string matching problem.
> --
> Eugene Berdnikov
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>