Re: [EXIM] Using the RBL with Exim filters

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: Martin Bialasinski
CC: exim-users
Assunto: Re: [EXIM] Using the RBL with Exim filters
On 1 Jul 1999, Martin Bialasinski wrote:

> I tried
>
> if def:header_X-RBL-Notice: then
> save $home/mail/spam
> endif
>
> but this is not accepted with an error indicating that the syntax is
> wrong :-(
>
> Filter error: unrecognized condition word "then" near line 4 of filter
> file
>
> Can someone be so nice and send a working solution?


No, but I can tell you your mistake. "def:header_X-RBL-Notice:" is a
condition that can be used in an expansion string. It is not a filter
file condition. You have to write something like

if "${if def:header_X-RBL-Notice:{yes}{no}}" is yes then ...

in a filter file.

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



--
*** Exim information can be found at http://www.exim.org/ ***