Re: [exim] Rejecting RunTogetherSubjects

Top Page
Delete this message
Reply to this message
Author: Karl Schmidt
Date:  
To: exim-users
Old-Topics: Re: [exim] Rejecting RunTogetherSubjects spam
Subject: Re: [exim] Rejecting RunTogetherSubjects
On 04/05/2011 10:39 AM, Jeremy wrote:
> Of course you can!
> Something along the lines of "if match $h_subject /w{25}".
>
> You'll need to look up the exact syntax; sorry.


I tried in acl_check_data:


deny    condition = ${if match{$h_subject:}{\w{25}}
         message = irritating


misses other non white characters


deny    condition = ${if match{$h_subject:}{\S{25}}
         message = irritating



This should work - but isn't? I tested it with PCRE via:

# echo "teststring25charlong" |grep --color -P "\S{25}" grep- -P


Note that it should be \w not /w and \S is anything non white-space.

Am I missing something?






-- 
--------------------------------------------------------------------------------
Karl Schmidt                                  EMail Karl@???
Transtronics, Inc.                              WEB http://xtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434


The lottery: a tax on people that don't understand math.

--------------------------------------------------------------------------------