Re: [Exim] Router Preconditions

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philip Hazel
Data:  
Para: Marc Perkel
CC: exim-users
Asunto: Re: [Exim] Router Preconditions
On Tue, 26 Nov 2002, Marc Perkel wrote:

> Here's what I need to do. I need to test if a file exists and is it does
> exist I need to user it as part of a senders statement.


senders = ${if exists{/the/file}{use it here}{never.never.never}}

> But - I need to test if
> the file exists before senders runs.


See above. If the file does not exist, you end up with

senders = never.never.never

which cannot match any sender, and so the router declines.

> Suggestion:
> Second Solution:


Do we really need these, given that you can do it as above?

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