Re: [Exim] Need wildsreach example for filter

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Marc Perkel
Cc: exim-users
Asunto: 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.