To identify a MAPIFolder is a "deleted items"

  • Thread starter Thread starter Semut
  • Start date Start date
S

Semut

Hello, anyway to identify if a MAPIFolder is the system "deleted items"
folder?


thank you.
 
The MAPI property PR_IPM_WASTEBASKET_ENTRYID (0x35E30102) gives you the
EntryID of the Deleted Items folder but it can't be accessed using the
Outlook object model. It's a property of the InfoStore object (IMsgStore) so
you'd need CDO 1.21 or Extended MAPI or Redemption code to get at it. Even
using Redemption you'd need to use CDO or Extended MAPI to get at the
InfoStore object.
 
You can call Namespace.GetDefaultFolder(olFolderDeletedItems), then compare
the EntryID property of the returned folder with the entry id of the folder
in question.
Strictly speaking entry ids cannot be directly compared (different entry ids
can refer to the same object), but it should work for folders both in
Exchnage and PST.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top