How to find Special folders?

  • Thread starter Thread starter Neetu
  • Start date Start date
N

Neetu

I am creating custom folders inside outlook using mAPIFolder .
I need to keep a collection of all folders inside a collection class.

However I want to skip special folders like inbox, deleteditem folders etc
inside my collection class since it doesn't support all events like user
created folders like drag , drop, or delete or rename.
I want to keep my collection class less loaded.

At begining of outlook , i can traverse to all folders with a recursive
function.
here I want to check if this folder is "Special folder".

How can I achieve it?
 
By special folders do you mean the default folders?

For most of them there are properties in the Inbox folder that provide the
EntryID's of the default folders as PT_BINARY properties. For example:

Calendar PR_IPM_APPOINTMENT_ENTRYID (0x36D00102)
Tasks PR_IPM_TASK_ENTRYID (0x36D40102)
etc.

Some are found by checking for properties in the Store object:

PR_IPM_OUTBOX_ENTRYID (0x35E20102)
PR_IPM_SENTMAIL_ENTRYID (0x35E40102)
PR_IPM_WASTEBASKET_ENTRYID (0x35E30102)

You can see those properties with a MAPI viewer such as OutlookSpy.
 
Back
Top