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

Top Page
Delete this message
Reply to this message
Author: JupiterHost.Net
Date:  
To: exim-users
Subject: 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...