MBOX-Line: From dave at cridland.net  Tue Feb 28 06:22:06 2006
To: imap-protocol@u.washington.edu
From: Dave Cridland <dave@cridland.net>
Date: Fri Jun  8 12:34:36 2018
Subject: [Imap-protocol] Re: Superior hierarchical mailbox creation....
In-Reply-To: <44045452.2050407@andrew.cmu.edu>
References: <fbe19dd00602280135r570f4946ofe29a42707fdc815@mail.gmail.com>
	<44045452.2050407@andrew.cmu.edu>
Message-ID: <2488.1141136528.074000@dark>

On Tue Feb 28 13:46:58 2006, Ken Murchison wrote:
> nikhil BS wrote:
>> Hi all,
>> We are developing a client for IMAP server.
>> I tried to create mailbox of the form x.y.z where '.' is the 
>> heirarchy separator.
>> According to the RFC,
>> 
>> --
>> If the server's hierarchy separator character appears elsewhere in
>>       the name, the server SHOULD create any superior hierarchical 
>> names
>>       that are needed for the CREATE command to be successfully
>>       completed.  In other words, an attempt to create 
>> "foo/bar/zap" on
>>       a server in which "/" is the hierarchy separator character 
>> SHOULD
>>       create foo/ and foo/bar/ if they do not already exist
>> --
>> 
>> But the mailbox x.y.z was created and not the superior 
>> hierarchical mailboxes x, x.y weren't.
>> This is the output of the LIST command...
> 
> The text in RFC 3501 says that the server SHOULD create any 
> superior *hierarchical names*, which Cyrus does.  It doesn't say 
> that it must create the hierarchical mailboxes.  I believe that 
> Cyrus is and has been compliant in this regard.
> 
> 
Yes, I agree - specifically, it says "foo/" and "foo/bar/", which, if 
used as the argument to CREATE, will create 'things' which can 
contain mailboxes, but may not be mailboxes themselves.

One quirk of Cyrus is that if one issues 'CREATE x.y.', then it 
creates a mailbox x.y, but no mailbox x. Entirely legal, however.

An IMAP server which actually created mailboxes foo and foo/bar (or x 
and x.y) in this instance would also be correct, of course.

Dave.
-- 
           You see things; and you say "Why?"
   But I dream things that never were; and I say "Why not?"
    - George Bernard Shaw

