Re: [exim] Escaping colon in colon-separated lists (environm…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Bob Johannessen
Datum:  
To: exim-users
Betreff: Re: [exim] Escaping colon in colon-separated lists (environment)
Stephen Gran wrote:
> On Fri, Mar 25, 2005 at 08:48:05AM +0100, Bob Johannessen said:
>>------------------------------------------------------------------------
>>        environment =AUTH=$authenticated_id           \
>>                    :SUBJECT=$header_subject:         \
>>                    :TO=$header_to:
>>------------------------------------------------------------------------
>>Is it possible to get all the contents of the Subject: header field
>>into the SUBJECT environment variable even if it contains a colon?

>
> Use a different field delimiter in your statement, e.g., < ;
>
> See 6.15 in the spec.


Using a different field delimiter just moves the problem, but reading
6.15 held the solution: "If a colon is actually needed in an item in
a list, it must be entered as two colons.". So:

:SUBJECT=${sg{$header_subject:}{:}{::}}

seems to do the trick. Thanks for the pointer :-)


    Bob