Re: [Exim] "Complex" SMTP AUTH conditions

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Peter Galbavy
CC: exim-users
Assumpte: Re: [Exim] "Complex" SMTP AUTH conditions
On Mon, 17 Jan 2000, Peter Galbavy wrote:

> My primary problem is that (in the PLAIN authenticator at least - at this
> stage) the parameters are placed in $1 and $2 - this causes me a problem as
> I am trying to then apply a regex to $1 - and I would assume (maybe
> incorrectly) that $2 would be overwritten.


It will be overwritten for the duration of the if, but restored
afterwards. The expansion

${if match{abc}{(.)(.)(.)} {${if match{xyz}{(.)(.)(.)}{$3$2$1}}$3$2$1}}

yields

zyxcba

so I think you might be able to do what you want. However, if all you
want to do is extract the local part from an address, how about

${local_part:$1}

??

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