RegEx in whitelist

Julian Field MailScanner at ecs.soton.ac.uk
Fri Jun 23 17:01:07 IST 2006


On 23 Jun 2006, at 16:42, Sam Przyswa wrote:

> shuttlebox a écrit :
>
>> On 6/23/06, Sam Przyswa <samp at arial-concept.com> wrote:
>>
>>> What is the right way accept all the smtp*-g*.free.fr machine ?
>>
>>
>> This should work:
>>
>> smtp.*-g.*\.free\.fr
>>
>> It can be done many ways.
>
>
> In fact a pure RegEx work as:
>
> From:  smtp[\d]+-g[\d]+\.free\.fr   yes
>
> Sure ?

You should surround the regexp with "/" so that MailScanner  
recognises it properly and does not try to compile it into a regexp  
again. So use
From: /smtp\d+-g\d+\.free\.fr/   yes
instead. Your square brackets are completely superfluous.

-- 
Julian Field
MailScanner at ecs.soton.ac.uk



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the MailScanner mailing list