Re: [Exim] Variable expansion

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Andrey Novikov
CC: exim-users
Tárgy: Re: [Exim] Variable expansion
On Mon, 28 Feb 2000, Andrey Novikov wrote:

> Hello,
>
> I have something like
> senders = "! root@*:/path/to/file/with/bad/addresses"
> in one of by directors, the problem is that when the file
> is empty or does not exist (these are valid situations for
> me) the expansion fails. How to overcome this?


The senders option is expanded. Therefore, put

senders = "!root@* : \
${if exists{/path/to/file/with/bad/addresses}\
{/path/to/file/with/bad/addresses}{/dev/null}}"

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.