Re: [EXIM] ${if def:xxx ...} in filter files?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Ephraim Silverberg
CC: exim-users
Betreff: Re: [EXIM] ${if def:xxx ...} in filter files?
On Sun, 11 Jan 1998, Ephraim Silverberg wrote:

> I can't seem to get the ${if def:xxx ...} condition to work in filter files.
> For example:
>
> % cat ~/xx
> # Exim filter
>
> testprint ${if def:X-RBL-Warning {spam}}
>
> % /usr/local/libexec/exim -bf xx < test-message
> Testing Exim filter file /CS/system/ephraim/xx
> Filter error: unknown filtering command "def:X-RBL-Warning" near line 3 of filter file
> %
>
> What am I doing wrong?


You are omitting to quote the argument of the testprint command.
Arguments to filter commands are delimited by white space unless
enclosed in double quotes.

I hope you are using Exim version 1.8x, because before that "def" worked
only with Exim variables, not with header names.


-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



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