Re: [EXIM] Setting up a UUCP transport

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Robin M. Braun
CC: exim-users
Sujet: Re: [EXIM] Setting up a UUCP transport
On Fri, 21 Nov 1997, Robin M. Braun wrote:

> My understanding is that the variable ${domain} will contain
> molin.afrint.co.za and the variable ${local_part} will contain junk.
> My question is, how do I extract the system name (molin) so that I can
> use a transport as follows:
>
> # UUCP delivering, with queing
> uux_domain:
> driver = pipe;
> command = "/usr/bin/uux - -r '${system}!rmail
> ${local_part}@${domain}'",
> pipe_as_creator,
> return_output


Where you have written ${system} you can write

${if match {$domain}{^([^.]+)}{$1}}

which uses a regular expression to pick off the first component of the
domain.

-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



--
*** Exim information can be found at http://www.exim.org/ ***