A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to access the Deleted Items Folder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 28th 09, 07:06 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
escamoteur
external usenet poster
 
Posts: 147
Default 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

Ads
  #2  
Old August 28th 09, 09:12 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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
news
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



  #3  
Old August 28th 09, 09:21 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
escamoteur
external usenet poster
 
Posts: 147
Default 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
news
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



  #4  
Old August 29th 09, 12:47 AM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.interop,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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
news
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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access the Deleted Items Folder escamoteur Outlook and VBA 3 August 29th 09 12:47 AM
recovering messages from 'Deleted Items' folder after "Empty 'Deleted Items' Folder" used [email protected] Outlook Express 1 August 23rd 07 02:55 PM
how to retain 10 days items in Outlook 2003 deleted items folder? Balthazar Outlook - Installation 2 June 7th 06 04:05 PM
Reading mails from Sent items, Deleted items, Draft folder of outlook from VB6.0 Viswanathan Outlook - General Queries 8 May 26th 06 04:31 PM
Recover deleted messages after emptying deleted items folder Gail Outlook Express 2 January 30th 06 06:18 PM


All times are GMT +1. The time now is 07:18 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-2024 Outlook Banter.
The comments are property of their posters.