Re: [Exim] Need wildsreach example for filter

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Marc Perkel
CC: exim-users
Subject: Re: [Exim] Need wildsreach example for filter
On Sat, 10 May 2003, Marc Perkel wrote:

> OK - Exim syntax still baffles me. In a filter I want to use the new
> wildsearch command and need an example.
>
> Something like:
>
> if $h_from:  ..... wildsearch /etc/exim/blockfrom
>    fail
> endif


If you just want to implement "Are the contents of the From: header in
the list in this file?" you need something like

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

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.