Quoting Jonathan Siegle <[email protected]>:

I am running dovecot 2.2 changeset 16983:d925674c4329 on AIX. We use mbox files with the "/" delimter. I have an imap protocol question. When I do:

1 list directory1/ *
1 OK List completed.

Is that the correct answer?

Yes.  See below.

If I do
1 list "" *

it shows
* LIST (\Noselect \HasChildren) "/" "directory1"

You are asking for the list of all mailboxes under (i.e. within) the 'directory1' mailbox. According to your 2nd command, there are no visible mailboxes under "directory1".

\HasChildren shouldn't normally be returned in this case. But that's a SHOULD NOT - not a MUST NOT. From RFC 3348:

   In many cases, however, a server may not be able to efficiently
   compute whether a user has access to all child mailboxes, or multiple
   users may be accessing the same account and simultaneously changing
   the mailbox hierarchy.  As such a client MUST be prepared to accept
   the \HasChildren attribute as a hint.  That is, a mailbox MAY be
   flagged with the \HasChildren attribute, but no child mailboxes will
   appear in a subsequent LIST response.

michael

Reply via email to