Szerző: Darren Casey \(Personal\) Dátum: Címzett: exim-users Tárgy: Re: [Exim] transport - pipe problem, not passing ARGV's
Hi
> > > I have the following transport
> > > program:
> > > driver = pipe
> > > user = admin
> > > group = users
> > > command = /home/admin/t ${lookup mysql {MYSQL_SPOOL}{$value}}
> >
> > You have to write
> >
> > command = /home/admin/t "${lookup mysql {MYSQL_SPOOL}{$value}}"
> >
> > because string expansion is done individually for space separated
> > arguments.
>
> Nope done that and it still fails. Thats the bit thats driving me nuts. I
> have spent ages trying to get this to work
>
> Everything works apart from passing the ARG's
OK sorted sorry for the waste of bandwidth
I was calling it from a router but didn't stop the following
A router redirects an address directly to a pipe command (for example, from
an alias or forward file). In this case, $local_part contains the local part
that was redirected, and $address_pipe contains the text of the pipe command
itself. The command option on the transport is ignored
So i had to put the arg's on the router data command not the transport
command