Re: [Exim] Using lists as OR expressions to make an effectiv…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Marc Perkel
CC: exim-users
Subject: Re: [Exim] Using lists as OR expressions to make an effective spam filter
On Thu, 29 May 2003, Marc Perkel wrote:

> if "$message_body:" matches
> \x28http\:\/\/\|mailto\:\x29.{0,15}\x28${sg{${sg{${sg{${readfile{/etc/exim/lists/blocklinks}{|}}}{\\|+}{|}}}{#.*?\\|}{}}}{\\|\$}{}}\x29.{0,10}\/
> then
>    headers add "X-Temp-Blocklink: YES"
> endif

>
> Is it possible to do this with wildlsearch?


It should be:

if ${lookup{$message_body}wildlsearch{/some/file}{yes}{no}} is yes then...

Note that newlines are turned into spaces in $message_body.


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book