Re: [exim] do router based on if a files exists or not

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Fred Viles
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] do router based on if a files exists or not
On 27 May 2005 at 15:13, JupiterHost.Net wrote about
    "[exim] do router based on if a file":


|...
| What would I have to add to make it only do the userforward router if -e
| $home/.do_userforward ?


Use the "exists" expansion condition, either in a "condition" option 
or in the expansion of file.  For example:
    condition = ${if exists {$home/.do_userforward} {yes} {no}}
or
    file = ${if exists {$home/.do_userforward} {$home/.forward} fail}


- Fred