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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Fred Viles
Fecha:  
A: exim-users
Asunto: 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