Re: [exim] Discard mail to certain recipients if the subject…

Inizio della pagina
Delete this message
Reply to this message
Autore: Александр Кириллов
Data:  
To: Jasen Betts
CC: exim-users
Oggetto: Re: [exim] Discard mail to certain recipients if the subject matches a string
This is too subtle for my simple mind. I bet the smart guy who wrote this
part never thought of handling encoded multibyte characters. Thanks for
your help folks. That was a pleasure. Mike, never mind that "local
delivery" comment. I don't know what I was thinking. Appreciate you help.

2017-04-07 3:11 GMT+03:00 Jasen Betts <jasen@???>:

> On 2017-04-06, Evgeniy Berdnikov <bd4@???> wrote:
> > 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.
>
> yeah, no bug. RFC2047 sec 2 and section 6 say that all encoded words
> shall be no longer than 75 ascii characters, the one containing
> "Commit_by" is over-length.
>
> Unusually for an RFC leniency is not reccomended,
> section 6.1. clause 1
>
>     (1) Any message or body part header field defined as '*text', or any
>         user-defined header field, should be parsed as follows: Beginning
>         at the start of the field-body and immediately following each
>         occurrence of 'linear-white-space', each sequence of up to 75
>         printable characters (not containing any 'linear-white-space')
>         should be examined to see if it is an 'encoded-word' according to
>         the syntax rules in section 2.  Any other sequence of printable
>         characters should be treated as ordinary ASCII text.

>
>
> --
> This email has not been checked by half-arsed antivirus software
>
> --
> ## 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/
>