[Top] [All Lists]

Re: Proposal for escaping on non-UTF-8 sequences in Sieve

2006-10-05 02:27:27

On Mon, 2006-10-02 at 13:39 +0200, Michael Haardt wrote:
On Sun, Sep 24, 2006 at 10:06:44PM +0100, Alexey Melnikov wrote:
After thinking more about this (and reviewing list of options provided 
by Philip), I would like to propose a variables-like syntax close to 
what you suggested above:
controlled by a new Sieve capability "string-escape".
This would give existing implementations an ability to provide the 
escaping functionality in both quoted and multiline strings, without the 
need to implement variables.
Any objections?

Just curious: What speaks against using the syntax of variables?  It is
certainly a MUST that the new extension does not require variables,
but that does not forbid to use their syntax.

$%xx$%xx is OK for me, but ${hex:xxxx} is easier to read and we don't
get in trouble, should someone really miss ${frombase64:xxxx} and add it.

as noted in my message on Sunday, you can't make ${frombase64:xxxx}.
even quoted-printable is a stretch, as I demonstrated (_jokingly_ I
hasten to add, although perhaps that wasn't clear).

I would still like to see a escape mechanism which also allows the entry
of Unicode (in UTF-8) in a pure US-ASCII script, I only mention this
since $%xx isn't really flexible enough for this -- the user shouldn't
have to do the UTF-8 transformation themselves.
Kjetil T.