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 » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

find all intrinsic folders such as Inbox, Deleted Items, ...



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 28th 07, 02:01 AM posted to microsoft.public.outlook.program_forms
DavidH&P
external usenet poster
 
Posts: 16
Default find all intrinsic folders such as Inbox, Deleted Items, ...

HI,

using VSTO2005SE,
I need to find all intrinsic folders such as Inbox, Deleted Items, Outbox,...
for the moment I'm doing liket that :
....Session.GetDefaultFolder(Microsoft.Office.Inte rop.Outlook.OlDefaultFolders.olFolderDeletedItems) ;
and I find the default DeletedItems folder.
but in the case of several mail accounts, you have a "Deleted Items" folder
for each one. and I didn't find how to detect them.

Can anyone can help me ?

thanks,

David
Ads
  #2  
Old March 28th 07, 03:56 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default find all intrinsic folders such as Inbox, Deleted Items, ...

In general, to locate a non-default folder, you need to walk the folder
hierarchy. But it sounds like you're trying to locate specifically the
Deleted Items folder for a store. That can be done only with a low-level API
such as Extended MAPI, CDO 1.21, Redemption, or MAPI33 by the value of the
hidden property PR_IPM_WASTEBASKET_ENTRYID (0x35E30102), which contains the
EntryID for that folder.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"DavidH&P" wrote:

HI,

using VSTO2005SE,
I need to find all intrinsic folders such as Inbox, Deleted Items, Outbox,...
for the moment I'm doing liket that :
...Session.GetDefaultFolder(Microsoft.Office.Inter op.Outlook.OlDefaultFolders.olFolderDeletedItems);
and I find the default DeletedItems folder.
but in the case of several mail accounts, you have a "Deleted Items" folder
for each one. and I didn't find how to detect them.

Can anyone can help me ?

thanks,

David

 




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
Inbox shows up under deleted items! joe Outlook - General Queries 4 January 24th 07 05:01 AM
How do i remove deleted items from my inbox automatically when pr. Corrine Outlook and VBA 1 August 15th 06 03:52 PM
Hide/Delete Deleted Items & Search Folders Folders in Outlook 2003 jpspringall Outlook and VBA 1 April 24th 06 03:51 PM
How to empty deleted items without resending it to inbox? RNB Outlook - General Queries 3 March 14th 06 08:13 PM
Inbox, Sent Items & Outbox in Deleted Items in Outlook 2003 & OWA with Exchange splounx Outlook - General Queries 1 February 17th 06 03:22 AM


All times are GMT +1. The time now is 11:45 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.