distinguish outlook folders

  • Thread starter Thread starter WLAN
  • Start date Start date
W

WLAN

Is there any way to distinguish outlook folders using Outlook object model?

I want to distinguish outbook folders like Inbox,Deleted
Items,OutBox,Mailbox - John, Junk e-mail etc.
 
I'm not sure what you're asking. Any default folder can be returned with the
Namespace.GetDefaultFolder() method.
 
Hi,

My objective is to distinguish folder names 'Mailbox - John' and Inbox
folder items. I have added a custom tab page into Folder Properties Page.
User can open properties of a folder by right clicking it.

How do I determine whether he has clicked on root node(Mailbox-John) or
Inbox or DeletedItems folder?
 
I have the following structure in my mailbox:

-Mailbox - John
User defined folder1
DeletedItems
Drafts
User defined folder2
Inbox
Junk E-mail
Sent Items
Outbox
+Search Folders
+Archive Folders
+Outlook 2007 Programming jumpstart (PST file)

In the above folder hierarchy,i want to show my custom folder properties tab
page for Inbox,Sent Items,User defined folder1,User defined folder2 items.

I don't want to show my custom folder properties tab page for other items.

How do I solve this problem?
 
As I indicated, you'd do a comparison with the folder returned by
Namespace.GetDefaultFolder or for the mailbox root, the Parent of any default
folder.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top