Detecting Folder Type

  • Thread starter Thread starter Chris Koiak
  • Start date Start date
C

Chris Koiak

Is there anyway to tell if a folder is a Personal, Public or Mailbox folder?

Different versions of Outlook have different naming standards for the
folders (and they can be renamed anyway) so the folder name is no use. I've
looked though all the properties (and extended mapi properties, via
redemption) and can't see anything helpful!!

Thanks

Chris
 
You have to use CDO to get that information, not Outlook objects. If you
iterate the Session.Infostores collection, the ProviderName property of each
store will let you know whether it's Personal Folders or Microsoft Exchange
Server. Additional properties designate the public folders store -- see
sample code at http://www.cdolive.com
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Is there anyway to tell if a folder is a Personal, Public or Mailbox folder?

Different versions of Outlook have different naming standards for the
folders (and they can be renamed anyway) so the folder name is no use. I've
looked though all the properties (and extended mapi properties, via
redemption) and can't see anything helpful!!

Thanks

Chris
 
Thanks, however this approach doesn't differentiate between Public folders
and Mailbox (Exchange) folders.

Chris
 
As I said: Additional properties designate the public folders store -- see
sample code at http://www.cdolive.com
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top