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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Fred Viles
Dátum:  
Címzett: exim-users
Tárgy: 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