When connected (using openssl s_client) to davmail authenticated to an Office365 account, the list (special-use) "" "*" command incorrectly returns NO Folder not found
On the other hand,
`
t2 LIST "" "%" RETURN (SPECIAL-USE)
- LIST (\HasNoChildren) "/" "Archive"
- LIST (\HasChildren) "/" "Conversation History"
- LIST (\Trash \HasNoChildren) "/" "Trash"
- LIST (\HasNoChildren) "/" "Deleted Messages"
- LIST (\Drafts \HasNoChildren) "/" "Drafts"
- LIST (\HasChildren) "/" "INBOX"
- LIST (\Junk \HasNoChildren) "/" "Junk"
- LIST (\HasChildren) "/" "Unsent Messages"
- LIST (\Sent \HasNoChildren) "/" "Sent"
- LIST (\Sent \HasNoChildren) "/" "Sent"
- LIST (\HasNoChildren) "/" "Sent Messages"
- LIST (\HasNoChildren) "/" "Spam"
- LIST (\HasChildren) "/" "Unsent Messages"
- LIST (\HasNoChildren) "/" "Working Set"
t2 OK LIST completed
`
(note some folders are repeated here).
I expect output like this:
`
foo list (SPECIAL-USE) "" "*"
- LIST (\HasNoChildren \UnMarked \Sent) "/" "Sent Messages"
- LIST (\HasNoChildren \UnMarked \Sent) "/" Sent
- LIST (\HasNoChildren \Junk) "/" Junk
- LIST (\HasChildren \Drafts) "/" "Unsent Messages"
- LIST (\HasNoChildren \Marked \Trash) "/" Trash
foo OK List completed (3.033 + 0.000 + 3.032 secs).
`
I've just tried with the tip of the SVN tree -- the problem is still there.
I worked around the issue by removing the advertisement of the 'SPECIAL-USE' capability; various people's mail clients all started working as a result.
Thanks for your feedback. Tried to fix this in trunk: DavMail will now only return special folders on a RETURN (SPECIAL-USE) list command
Fixed in v5.4.0