MBOX-Line: From vladimir_butenko at stalker.com  Mon Apr 10 10:32:38 2006
To: imap-protocol@u.washington.edu
From: "Vladimir A. Butenko" <vladimir_butenko@stalker.com>
Date: Fri Jun  8 12:34:37 2018
Subject: [Imap-protocol] LIST Clarification
In-Reply-To: <443A7A2D.2070708@consilient.com>
References: <443A7A2D.2070708@consilient.com>
Message-ID: <web-35034698@mail.stalker.com>

Nevon,

Yes, I think it's better to discuss these things here.

The example I sent (with In%B%) was just illustrative.

Please note that the LIST parameter is NOT a mailbox name, it's a pattern 
(though the standard uses an informal language - "mailbox name with possible 
wildcards").

The standard is pretty clear about these things:

       The special name INBOX is included in the output from LIST, if
       INBOX is supported by this server for this user and if the
       uppercase string "INBOX" matches the interpreted reference and
       mailbox name arguments with wildcards as described above.


The "upper case string "INBOX"" does NOT match neither the "Inbox" pattern, 
not the "In%b%" pattern. As a result, it will not be included into the list 
issued by an IMAP server that follows the published standard.

On the other hand, the name MAY be included in the output, if the server 
uses case-insenstive names (as you could observe using a CommuniGate Pro 
server running under Windows OS) - but in that case the INBOX name is 
included as a regular mailbox name, not as a "special name INBOX" which is 
included only under the conditions specified above.



Sincerely,
Vladimir


On Mon, 10 Apr 2006 13:00:53 -0230
  Nevon Brake <nevon_brake@consilient.com> wrote:
> I am seeking clarification on the following paragraph that appears in the 
>LIST command section of RFC3501:
> 
> "The special name INBOX is included in the output from LIST, if INBOX is 
>supported by this server for this user and if the uppercase string "INBOX" 
>matches the interpreted reference and mailbox name arguments with wildcards 
>as described above. The criteria for omitting INBOX is whether SELECT INBOX 
>will return failure; it is not relevant whether the user's real INBOX 
>resides on this or some other server."
> 
> From this, can one conclude that a server implementation MAY not return 
> the INBOX in a LIST such as:
> 
> C: a004 LIST "" Inbox
> S: a004 OK LIST completed
> 
> when it does return it in a LIST such as:
> 
> C: a004 LIST "" INBOX
> S: * LIST (\Unmarked) "/" INBOX
> S: a004 OK LIST completed
> 
> Secondly, take a scenario where there are three mailboxes: INBOX, INBOX1 
>and InBox1, and the client does a LIST:
> 
> C: a004 LIST "" In%B%
> 
> Assuming the implementation is case-sensitive, what must the server 
>return? More importantly, can it NOT return the INBOX? I realize this 
>example is a bit contrived, but it may help in the clarification.
> 
> Thank you,
> 
> Nevon
> _______________________________________________
> Imap-protocol mailing list
> Imap-protocol@u.washington.edu
> https://mailman1.u.washington.edu/mailman/listinfo/imap-protocol

