[Top] [All Lists]

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

2006-09-18 10:28:24

Hi Michael,

--On September 18, 2006 4:51:49 PM +0200 Michael Haardt <michael(_at_)freenet-ag(_dot_)de> wrote:

Here is a strawman syntax for new quoted strings that would only allow
for valid UTF-8 sequences, but would also allow for escaped non-UTF-8

  new-quoted-string  = "~" DQUOTE new-quoted-text DQUOTE

You introduce a new lexical token to Sieve, thus changing the Sieve
syntax.  I don't think the base spec allows that.  Sieve has a very
small syntax, moving most stuff to the semantical layer for being very
extensible, pretty much like LISP does.

The variables extension, for example, introduces the concept of expanding
strings, but only at the semantic level.  Syntactically, strings still
look the same.

How about if 'require string-escape' is present in the script, then ALL strings following that will be of the new 'escaped' form. i.e. a global switch covering all strings used in the script.

Cyrus Daboo