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