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

Top Page
Delete this message
Reply to this message
Author: Jan Ingvoldstad
Date:  
To: Julian Bradfield
CC: exim users
Subject: Re: [exim] Filter with special characters (!?)
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



--
Jan