Re: [Exim] Use of "exists" in filter files

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: The Flying Hamster
CC: exim-users
Onderwerp: Re: [Exim] Use of "exists" in filter files
On Fri, 23 Feb 2001, The Flying Hamster wrote:

> ok, I'm missing something here but I can't seem to get the format
> right in using exists.
>
> if exists "/etc/exim/var/daytime"
> then
>
> would seem to be logical but it doesn't work.


When in doubt, RTFM.

Assuming that something which "seems logical" will work without actually
checking the specification is not usually a good way to configure
software.

If you read the specification of Exim filter files, you will find a
number of sections, starting with "19. String testing conditions", that
specify the conditions you can put after the "if" command in a filter
file. Careful scrutiny will show you that "exists" is not one of them.

There *is* an "exists" condition that can be used in expansion strings,
however. I guess you are confusing the two types of "if".



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