To get Items from multiple user created folders

M

Maddy

Hi ,

I want to get items from user created folders from outlook 2003.
How can I do this.In case of default folders we can do that by using

pFolder=pApp->GetNamespace(_bstr_t("MAPI"))->GetDefaultFolder(olFolderInbox);

Here for default folder olFolderInbox enumeration is there , what should be
done in cae of user created folders.

Please do suggest on the same.

Thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

If you know the location of the user created folders you can navigate there
using any folder's Folders collection. For example a subfolder of Inbox
would be in oFolderInbox.Folders. To find all folders you need to do a
recursive search starting at NameSpace.Folders and work down from there,
examining each MAPIFolder.Folders that's present.
 

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