I’m implementing an IMAP server and I’m a bit confused about this sentence found in rfc 3501 6.3.8 (LIST command).

 

page 42, 3rd paragraph from bottom, 3rd sentence states: 

      If the "%" wildcard is the last character of a mailbox name argument, matching levels of hierarchy are also returned.

 

Given a hierarchy of selectable mailboxes on my storage device:

/m/aaa

/m/aaa/one

/m/bbb

/m/ccc/two

and the client request:

 

C: A013 LIST "" "/m/aaa/%"

 

Which below is the correct response?  I don’t understand exactly which level “matching levels” means, siblings of %, or siblings of aaa.

 

R1: * LIST () "/" "/m/aaa/one"

 

-        or –

 

R2: * LIST () "/" "/m/aaa"

R2: * LIST () "/" "/m/aaa/one"

 

-        or –

 

R3: * LIST () "/" "/m/aaa"

R3: * LIST () "/" "/m/aaa/one"

R3: * LIST () "/" "/m/bbb"

R3: * LIST () "/" "/m/ccc"

 

Thanks in advance.

-dave

 

 

Reply via email to