Can I use a regex in messagesize.rules

Jules Field MailScanner at ecs.soton.ac.uk
Wed Jul 7 11:51:04 IST 2010


Yes, but if you read the docs you will find you need to put '/' 
characters around the regexp.

On 07/07/2010 10:34, Ram wrote:
> I have MailScanner version 4.70.7 on  CentOS 5.2
>
> If I have a rule in MailScanner messagesize like
>
> To: ram at netcore.co.in 10000
> This works fine
>
>
>
> Some regular expressions  like these work too
> To: ram@(mumbai\.)?netcore.co.in 10000
>
>
> But Expressions like these dont work
> To: ram@(.+\.)?netcore.co.in
>
>
>
>
> Are these regular expressions supported
>
>
>
>
>    

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM


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



More information about the MailScanner mailing list