MBOX-Line: From mrc at CAC.Washington.EDU  Wed Nov 30 09:36:51 2005
To: imap-protocol@u.washington.edu
From: Mark Crispin <mrc@CAC.Washington.EDU>
Date: Fri Jun  8 12:34:36 2018
Subject: [Imap-protocol] INBOX magic
In-Reply-To: <20051130170821.GC13650@fone>
References: <20051130170821.GC13650@fone>
Message-ID: <Pine.OSX.4.64.0511300912180.562@pangtzu.panda.com>

On Wed, 30 Nov 2005, Ingo Schurr wrote:
> Reading the BNF as pedantic as possible, neither DQUOTE "Inbox" DQUOTE
> nor "Inbox/foo" would trigger the INBOX magic, as both would be
> astrings. (In the example '/' would be a hierarchical separator)

The first is not the case.  INBOX in a mailbox name is always INBOX, even 
if it is given as a string.  Note the following in the text of that BNF 
rule:
                     ; An astring which consists of
                     ; the case-insensitive sequence "I" "N" "B" "O" "X"
                     ; is considered to be INBOX and not an astring.

The second is the case.  There is no reason to believe that Inbox/foo is 
in any way related to INBOX.  That's completely server-dependent.

For what it's worth, UW imapd won't prevent you from creating Inbox/foo 
however it will hide the Inbox/ directory and you can't see it (not even 
with a * wildcard) unless Inbox/ is in the pattern:
 	C: 1 create Inbox/foo
 	S: 1 OK CREATE completed
 	C: 2 list "" Inbox*
 	S: * LIST (\NoInferiors) NIL INBOX
 	S: 2 OK LIST completed
 	C: 3 list "" Inbox/*
 	S: * LIST (\NoSelect) "/" Inbox/
 	S: * LIST (\NoInferiors \UnMarked) "/" Inbox/foo
 	S: 3 OK LIST completed

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.

