More special chars in mailbox names

Ken Murchison murch at andrew.cmu.edu
Tue Sep 30 21:23:07 EDT 2008


Wesley Craig wrote:
> On 30 Sep 2008, at 20:00, Ken Murchison wrote:
>> Wesley Craig wrote:
>>> UMich has added this list:
>>>     #$%'()*;<>?[]^`{|}
>>> for years without any reported issues.  These were added primarily to 
>>> deal with transition from UWIMAP to Cyrus, I'm not making a case for 
>>> any of them, personally.
>>
>> Unless I'm misreading the RFC 3501 grammar, the following are prohibited:
>>
>> ( ) { % * " \ ]
> 
> Not that I'm not advocating a change similar to UMich's (I'm totally not).
> 
> What aspect of RFC3501 do you feel prohibits ( ) { % * " \ ] ?  Anything 
> that takes a mailbox can accept:
> 
>     mailbox         = "INBOX" / astring
>     astring         = 1*ASTRING-CHAR / string
>     string          = quoted / literal
>     literal         = "{" number "}" CRLF *CHAR8
>     CHAR8           = %x01-ff

ASTRING-CHAR   = ATOM-CHAR / resp-specials

atom            = 1*ATOM-CHAR

ATOM-CHAR       = <any CHAR except atom-specials>

atom-specials   = "(" / ")" / "{" / SP / CTL / list-wildcards /
                   quoted-specials / resp-specials

list-wildcards  = "%" / "*"

quoted-specials = DQUOTE / "\"

resp-specials   = "]"


Maybe the Cyrus check is done AFTER parsing of a quoted string or 
literal, which puts just about everything on on the table.  Using 
list-wildcards would always be a bad idea IMHO.


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Cyrus-devel mailing list