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.
 
Back
Top