]> Sergey Matveev's repositories - public-inbox.git/commit
imap: LIST shows "INBOX" in all caps
authorEric Wong <e@yhbt.net>
Wed, 10 Jun 2020 07:05:05 +0000 (07:05 +0000)
committerEric Wong <e@yhbt.net>
Sat, 13 Jun 2020 07:55:45 +0000 (07:55 +0000)
commit8af34015e9aa94e5ae4ae9e9fd2c4d155453ac94
tree8c177a0c2baa04b96ef1839dd2da899fb5d97a89
parentf1f7030566b17f596e2d6083047535ddd9b94e8c
imap: LIST shows "INBOX" in all caps

While selecting a mailbox is done case-insensitively, "INBOX" is
special for the LIST command, according to RFC 3501 6.3.8:

> 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.

Thus, the existing news.public-inbox.org convention of naming
newsgroups starting with "inbox." needs to be special-cased to
not confuse clients.

While we're at it, do not create ".0" for dummy newsgroups if
they're selected, either.
lib/PublicInbox/IMAP.pm
lib/PublicInbox/IMAPD.pm
t/imapd.t