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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Marc Perkel
CC: exim-users
題目: 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