Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How to access the Deleted Items Folder (http://www.outlookbanter.com/add-ins-outlook/94238-how-access-deleted-items-folder.html)

escamoteur August 28th 09 07:06 PM

How to access the Deleted Items Folder
 
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


Dmitry Streblechenko August 28th 09 09:12 PM

How to access the Deleted Items Folder
 
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
-
"escamoteur" wrote in message
...
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




escamoteur August 28th 09 09:21 PM

How to access the Deleted Items Folder
 
Sorry, I forgot. No it's a PST Store. I'm using Outlook 2007
Best
Tom

"Dmitry Streblechenko" schrieb im Newsbeitrag ...
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
-
"escamoteur" wrote in message
...
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




Dmitry Streblechenko August 29th 09 12:47 AM

How to access the Deleted Items Folder
 
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 IMsgSto: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
-
"escamoteur" wrote in message
...
Sorry, I forgot. No it's a PST Store. I'm using Outlook 2007
Best
Tom

"Dmitry Streblechenko" schrieb im Newsbeitrag
...
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
-
"escamoteur" wrote in message
...
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





All times are GMT +1. The time now is 07:34 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com