Re: [exim] exim4 and problem with ${extract... and white spa…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jakob Hirsch
Fecha:  
A: exim-users
Asunto: Re: [exim] exim4 and problem with ${extract... and white spaces
Heiko Schlittermann wrote:

>     command = /tmp/script ${extract{uux}{uux=/bin/uux rmail=rmail}{$value}}
> [ do not think about the sense, the original is more complicated ;-) ]
> exim always tells me about errors and missing '}' resp '{'.


works here (Exim 4.47 snapshot):
$ exim -be '${extract{uux}{uux=/bin/uux rmail=rmail}{$value}}'
/bin/uux

>     command = ${extract{uux} ${lookup{$domain}lsearch{/etc/exim4/uucp.commands}{$value}}}


Put {} around every argument!

${extract {uux} {${lookup{$domain}lsearch{/tmp/t}}}}

{$value} is not needed, but also does no harm.