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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: JupiterHost.Net
Date:  
À: exim-users
Sujet: Re: [exim] do router based on if a files exists or not

> 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}


Thanks Fred, I think I;m starting to catch on :)

I wonder which one is quicker, less resource intensive:

require_files = $home/.do_userforward
file = $home/.forward

or

file = ${if exists {$home/.do_userforward} {$home/.forward} fail}

both have the same effect in this router...