Re: [exim] How to allow delimiter characters in delimited st…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Wakko Warner
Päiväys:  
Vastaanottaja: Jeremy Harris
Kopio: exim-users
Aihe: Re: [exim] How to allow delimiter characters in delimited strings?
Jeremy Harris wrote:
> Marc Haber wrote:
> > hostname:username:cleartext-password
> >
> > so that ${extract{1}{:} can be used to obtain the user name and
> > ${extract{2}{:} yields the cleartext password.
> >
> > While defining this, we didn't think of user names and passwords
> > containing colons :-(
>
> You could transform the original name (etc) when building your
> file, converting ":" to, say, "|" and an original "|" to "||".
> Then after the extract, "||" back to "|" and "|" followed by anything
> but "|" back to ":".
>
> Mind, I've not bothered to work out a ${sg} to do this, so it
> may not be possible.


Too bad this won't work:
this:that:"some:password"

Maybe extract could handle this, or they could change the passwd format to
something that extract does handle, like:
host=this user=that pass=some:password

which say pass="some=password" would work as well.

Unfortunately, it's probably not an option.

--
Lab tests show that use of micro$oft causes cancer in lab animals
Got Gas???