Re: [exim] Filter with special characters (!?)

Góra strony
Delete this message
Reply to this message
Autor: Jasen Betts
Data:  
Dla: exim-users
Temat: Re: [exim] Filter with special characters (!?)
On 2018-08-24, Jan Ingvoldstad via Exim-users <exim-users@???> wrote:
> On Thu, Aug 23, 2018 at 8:57 AM, Julian Bradfield via Exim-users <
> exim-users@???> wrote:
>
>> On 2018-08-22, Emanuel Gonzalez via Exim-users <exim-users@???>
>> wrote:
>> > 2018-08-22 07:48:12 1fsQgL-000554-6N Entrantes y Salientes autenticados
>> - Cuenta_FROM: <casagrognetiff@???> - X-Mailer = Microsoft Outlook
>> Express 6.00.2900.2950 - Subject = \277Eres el del video?
>> >
>> > discard    condition = ${if match{$header_subject:}{^\277Eres el del
>> video?\$}}           logwrite = Rejected By SPAM - $header_subject - FROM:
>> "$sender_address"

>>
>>
>> You haven't escaped the ? in your regex.
>>
>
> Instead, the $ is escaped, so a header that would be matched could be:



> ¿Eres del vide$spamspam oh lovely spam and some nasty unsafe characters
>


no. it was only escaped once.

the dollar needs to be escaped from expansion. \$

the ? needs to be escaped from regex.            \\?


-- 
     ت