Re: [Exim] Router Preconditions

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Marc Perkel
CC: exim-users
Subject: 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.