Re: [Exim] ${if eq ... } in pipe command

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Philip Hazel
Data:  
Para: exim-users
Assunto: Re: [Exim] ${if eq ... } in pipe command
On Thu, 30 Sep 1999, Peter Radcliffe wrote:

>   command = "perl -T /usr/local/rt/bin/rtmux.pl \
>                      rt-mailgate helpdesk \
>                      ${if eq {$local_part}{rt} {correspond}{action}}"


You need some internal quoting in there. Exim expands each individual
argument separately. Because you have (necessarily) got spaces in your
${if item, you have to quote that argument. Try

  command = "perl -T /usr/local/rt/bin/rtmux.pl \
                     rt-mailgate helpdesk \
                     \"${if eq {$local_part}{rt} {correspond}{action}}\""



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