To get Items from multiple user created folders

  • Thread starter Thread starter Maddy
  • Start date Start date
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.
 
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

Back
Top