Re: [Exim] AUTH Login and passwords which have colons (:) in…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Bonis, Wim
CC: exim-users
Tárgy: Re: [Exim] AUTH Login and passwords which have colons (:) in it
On Mon, 3 Apr 2000, I wrote:

> > or to make a new quote function ${quote-colons:$1} or quote-ldap which
> > subtitutes one ":" with 2 ":"
>
> I'll think about this one.


I had been toying with the idea of implementing an operation like Perl's
substitution operator s/xxxx/yyyy/g and this seems to be a good use
for this more general facility. So I'll do it. It will be called "sg"
for "substitute globally" and you will be able to write

${if pam{$1:${sg{$2}{:}{::}}{1}{0}}


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