distinguish outlook folders

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.
 
S

Sue Mosher [MVP-Outlook]

I'm not sure what you're asking. Any default folder can be returned with the
Namespace.GetDefaultFolder() method.
 
W

WLAN

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?
 
W

WLAN

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?
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top