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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Jasen Betts
日付:  
To: exim-users
題目: Re: [exim] Discard mail to certain recipients if the subject matches a string
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