On Wed, 28 Aug 2002, Dilip Menon wrote:
> Is there any restriction on the IMAP List command creating a new folder,
> while replacing a top-level hierarchial folder. Does the top level
> folder get deleted and subsequently created, or is it not allowed. If it
> does get created, does the newly created folder have the same properties
> as the top-level folder?
>
> For e.g.
> if the command is
> <tag> RENAME folder1 folder1/folder2
> Is there any limitation from the RFC point of view?
If the server allows inferiors of INBOX, then
tag RENAME INBOX INBOX/foo
(assuming / is the hierarchy character) should work, and result in an
empty INBOX and the former INBOX messages being in INBOX/foo.
For all other instances of
tag RENAME mailbox1 mailbox1/mailbox2
I claim that it is server-dependent what will happen. Many servers will
probably refuse to do this RENAME, and respond with a NO.
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.