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:49, JupiterHost.Net wrote about
    "Re: [exim] do router based on if a ":


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

|...

I'd use require_files, it's more readable and is obviously the
*intended* method. If I'd remembered it, I wouldn't have even
mentioned exists. Performance is not an issue with either method,
IMHO.

- Fred