How to access the Deleted Items Folder

E

escamoteur

Hi,

in the Default Store it's easy to access the "Deleted Items Folder" with GetDefaultFolder.

But how can I access the "Deleted Items Folder" of any other store?? I don't wan't to use the folder's name as this would make it
impossible to localize the add-in.

Best
Tom
 
D

Dmitry Streblechenko

Is that other Exchange user's store? You can the nuse
Namespace.GetSharedDefaultFolder.

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

Dmitry Streblechenko

On the low level (Extended MAPI - C++ or Delphi), you would need to read the
PR_IPM_WASTEBASKET_ENTRYID property from that IMsgStore and use its value to
call IMsgStore::OpenEntry() to open the folder (IMAPIFolder)
Outlook would only let you open default folders from the default store in
the current profile or other Exchange user's mailbox.
<plug> Redemption woudl let you open default folders on the per-store
level - use RDOStore.GetDefaultFolder -
http://www.dimastr.com/redemption/rdo/rdostore.htm </plug>

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

Ask a Question

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.

Ask a Question

Top