2

I'm trying to index items inside an exchange mailbox so: What is the most efficient way to iterate through all the folders and items in an exchange mailbox using MAPI and/or Redemption Data Objects (RDO)?

I know RDOFolder.GetAllChildFolders (and IMAPIContainer::GetHierarchyTable) can give me all the folders (probably in the most efficient way) but what about the items inside the folders?

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78
Hannes de Jager
  • 2,903
  • 6
  • 37
  • 57

1 Answers1

2

What are you going to do with the items? If you just want to read some properties, MAPI tables (http://www.dimastr.com/redemption/mapitable.htm) in Redemption (I am its author) is the way to go, and RDOFolder.Items.MAPITable.ExecSQL is probably the easiest to retrieve the data. If you need to retrieve large string or binary properties, attachments, or modify the data, you have no choice but to open each item separately.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78