View Single Post
  #9  
Old June 1st 09, 07:28 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to judge what folder the specified entry id is?

Deleted Items: PR_IPM_WASTEBASKET_ENTRYID

(not Junk)

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ryotyankou via OfficeKB.com" u48591@uwe wrote in message
news:96e205e77a776@uwe...
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