Re: Regex question related with header_checks.

From: Ralf Hildebrandt (no email)
Date: Tue Apr 02 2002 - 06:02:17 EST


On Tue, Apr 02, 2002 at 12:32:17PM +0200, Jesus Climent wrote:
>
> Hi.
>
> I have received the following header in an spam mail:
>
> Subject: Multiplicar por 8 las ventas en su web
>
> I put a rule in header_checks like:
>
> /^Subject: Multiplicar por \d+ las ventas en su web/ reject
>
> But I cannot get the number right. If i send a mail changing 8 with 18 the
> mail goes through. I am no regex expert, but I think it should work.
>
> I tried also with [:digit:]+ and related. I have red the man (man regex) but
> still...

Maybe:
/^Subject: Multiplicar por [0-9]+ las ventas en su web/ REJECT

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
Trying to outsmart a compiler defeats much of the purpose of using
one. -- Kernighan & Plauger, The Elements of Programming Style. 
-
To unsubscribe, send mail to  with content
(not subject): unsubscribe postfix-users







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD