Autor: Evgeniy Berdnikov Datum: To: exim-users Betreff: Re: [exim] Discard mail to certain recipients if the subject
matches a string
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