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

Pàgina inicial
Delete this message
Reply to this message
Autor: Fred Viles
Data:  
A: exim-users
Assumpte: 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