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

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] How to allow delimiter characters in delimited strings?
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.

- Jeremy