Re: [Exim] Variable expansion

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Andrey Novikov
Cc: exim-users
Asunto: 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.