[Top] [All Lists]

Re: ManageSieve: allowed characters in script names

2008-04-08 08:29:53

--On Tuesday, April 08, 2008 04:00:41 PM +0100 Alexey Melnikov <alexey(_dot_)melnikov(_at_)isode(_dot_)com> wrote:

draft-martin-managesieve-08.txt [currently expired], section 1.7 says:

    Sieve script names may contain any valid UTF-8 characters, except
    for NUL, CR or LF. Names MUST be at least one octet long. Zero
    octets script name has special meaning (see SETACTIVE command
    section). Servers MUST allow names of up to 128 Unicode characters
    in length, and MAY allow longer names.

Is this reasonable? I think we should at least prohibit other ASCII
control characters.

There are probably a number of unicode characters we should prohibit.
Take a look at the tables in the stringprep document, but bear in mind that current thinking seems to be that such prohibitions should be based on unicode character properties rather than on explicit lists.

It may be appropriate here to apply stringprep to script names, but it may also not be necessary.

Isode's implementation is even more restrictive, as it disallows ¬, :,
/, etc. Should they be allowed?

There are certainly some classes of characters, such as letters and digits, that all implementations should accept. But there also should be some flexibility; for example, some implementations may find it useful to disallow some subset of [][/\\:;,] or other characters, depending on the underlying OS.

-- Jeff

<Prev in Thread] Current Thread [Next in Thread>