I’ve used MAPI on a project recently to traverse mailboxes and export them to .msg files so I know a bit but I would now like to efficiently count all the folders inside a mailbox. Can this be done with MAPI tables somehow? Is there a magic property for this? Any help will be appreciated.
Share
Normally you only get the immediate child folders.
You can pass CONVENIENT_DEPTH flag to get all child folders returned. If I remember correctly, that will only work with the online Exchange stores (both mailbox and PF).