Advice on which API to use
Posted on 2004-08-26
I have code that I wrote for outlook in C++ using Extended MAPI. I had started out with the Outlook Object Model, but it turned out to be prohibitively too slow. This is literally what my C++ code does:
The module is designed to create an XML database of all of your contacts (either from e-mail or actual Contacts).
It goes through every message in every folder the end user selects, and creates ContactInfo objects in memory. These ContactInfo objects contain data like e-mail address, subject of last communication, date of last communication, name (interpreted from name field if it is not a real Contact vs. just an email). I do NOT go through the body or attachments. For Contacts in Outlook, I grab the address, company name, job title, etc. (every field I can).
The list of ContactInfo objects is then spit out to XML (I have about 1700 unique contacts where unique is defined by e-mail address).
At a later time, I can read back in this XML, and go through all selected folders again, ONLY reading objects that were received/created after Date X, where Date X was the time of the last extraction.
Now, there are many other things we do to write back data to Outlook/Exchange, but for now, I just want to be able to do that.
Is LotusScript feasible here? If not, is C++ API any faster?