This seems odd to me.
In the first call IMAP returns all the folders and in second IMAP just request the folders under the “Deleted Items” folder.
How come in the first request where I request all folders is there is folders coming back under the “Deleted Items” folder yet when I request folder directly under the “Deleted Items” folder a folder which is supposedly under the “Inbox” is coming back?
The IMAP trace log looks like this:
Mail.dll: 3 11:20:39 3.0.14185.1633
Mail.dll: 3 11:20:39 C: 26a48ae91c91472c LIST "" "*"
Mail.dll: 3 11:20:39 S: * LIST (\Unmarked) "/" "Deleted Items"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Draft"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Drafts"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Junk E-mail"
Mail.dll: 3 11:20:40 S: * LIST (\Marked) "/" "Inbox"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Sent"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Trash"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "INBOX/Keep"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Sent Items"
Mail.dll: 3 11:20:40 S: * LIST (\Unmarked) "/" "Save this"
Mail.dll: 3 11:20:40 S: 26a48ae91c91472c OK LIST completed
The thread 0x44c has exited with code 259 (0x103).
Mail.dll: 3 11:21:07 C: b50fc8dfa12e4699 LIST "" ""
Mail.dll: 3 11:21:08 S: * LIST (\Noselect) "/" ""
Mail.dll: 3 11:21:08 S: b50fc8dfa12e4699 OK LIST completed
Mail.dll: 3 11:21:08 C: ca3f4b08e0784028 LIST "Deleted Items/" "%"
Mail.dll: 3 11:21:08 S: * LIST (\Unmarked) "/" "INBOX/Keep"
Mail.dll: 3 11:21:08 S: ca3f4b08e0784028 OK LIST completed
If you look at the folder tree in the mail UI it looks like this (SmarterMail):
-Inbox
|
+- Keep
-Deleted Items