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

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: exim-users
Assumpte: 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.