Although the behavior seems strange and is arguably wrong, it is compliant
with the IMAP protocol specification and is brought about by how INBOX is
implemented in UW imapd.
If neither \HasChildren or \HasNoChildren is indicated, then the child
status is indeterminate. The lack of \NoInferiors indicates that the
mailbox could have inferiors.
When you referenced the name INBOX, you referenced the case-independent
special mailbox defined in IMAP for incoming messages.
When you referenced the name INBOX/, you referenced the dual-use mailbox
with the case-dependent name INBOX. Note, in particular, the following
behavior:
10 LIST "" inbox/
10 OK LIST completed
This is because there is no such name as "inbox/".
The story gets worse. If you create "inbox/foo", you end up with an
"inbox" which is shadowed by INBOX and thus is not directly accessible;
you can also have an INBOX/foo that is separate from inbox/foo. There's
other stuff that goes wrong...
Consequently, my Official Position is that children of INBOX are NOT
SUPPORTED and any use of these is at your own risk.
By request, there is explicit code in UW imapd (dummy_scan() in dummy.c)
to list INBOX, and not report \NoInferiors if the INBOX is in a dual-use
format. But it's still not supported.
On Thu, 17 Apr 2008, Joel Reicher wrote:
I don't know if this is a bug or not because I don't know what the
correct behaviour should be. If this isn't a bug, could someone explain
the output?
7 list "" %
* LIST (\HasNoChildren) "/" Sent
* LIST (\HasNoChildren) "/" Trash
* LIST (\HasNoChildren) "/" Drafts
...
* LIST () "/" INBOX
7 OK LIST completed
8 list "" INBOX*
* LIST () "/" INBOX
8 OK LIST completed
9 list "" INBOX/
* LIST (\HasNoChildren) "/" INBOX/
9 OK LIST completed
All the mailboxes seen here are mix.
Thanks,
- Joel
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw
-- 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.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw