View Single Post
  #6  
Old May 31st 09, 05:13 AM posted to microsoft.public.outlook.program_addins
ryotyankou via OfficeKB.com
external usenet poster
 
Posts: 101
Default How to judge what folder the specified entry id is?

Thank you for your relpy, Dmitry.
For a mail store, to get entry id for folders:
Inbox: GetReceiveFolder
Outbox: PR_IPM_OUTBOX_ENTRYID
Sent: PR_IPM_SENTMAIL_ENTRYID
Junk: PR_IPM_WASTEBASKET_ENTRYID
// then open PR_IPM_SUBTREE_ENTRYID to get others
Draft: PR_IPM_DRAFTS_ENTRYID
... Am i right?
But how about the deleted items folder? I couldn't find it in outlook spy.

Dmitry Streblechenko wrote:
The omnly way to do that is to read the MailItem.Parent property which
returns the parent MAPIFolder object.
Or you can read the PR_PARENT_ENTRYID MAPI property.

I scaned all message store to search folders and add them to a tree with
checkbox. user can select what folder to do deal with, i want to set

[quoted text clipped - 17 lines]
"outbox".
Any ideas? If i want to check the folder's(MAPIFolder) type?


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200905/1

Ads