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

G

Guest

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

Guest

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.
 

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