Managed Folders
Way back in Chapter 4, we discussed the concept of managed folders. At that point, we hadn’t delved into the world of extended properties, so you had to fetch all of the subfolders of the root folder and look for the ManagedFolderInformation property on each subfolder. Though that approach does work, there is a more efficient way to do this.
As discussed in Chapter 4, the ManagedFolderInformation property can be used to determine which folders are managed and which are not. You can perform a FindFolder operation with a restriction and ask it to return only those folders that have managed folder information.[200] Here is the request:
<FindFolder xmlns=".../messages" xmlns:t=".../types" Traversal="Deep"> <FolderShape> <t:BaseShape>Default</t:BaseShape> ...
Get Inside Microsoft® Exchange Server 2007 Web Services now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.