Welcome to the Outlook 2007 MAPI Reference

The Outlook 2007 MAPI Reference just went live on the MSDN. The docs are propagating their way through the servers, and should start showing up in the table of contents and searches soon. [update: propagation is complete – Live and Google should reindex soon] This is the MAPI documentation refresh I’ve been talking about for…


I Did Read Your Message

On my article about enabling rules in the Wrapped PST, Richard pointed out that when you do this, read receipts stop working. We’ve investigated this and found that there’s something a little extra you have to do to get read receipts to fire. Remember that we’re using ITEMPROC_FORCE to push the messages through the Item…


November 2008 Release of MFCMAPI

The November 2008 Release (build is live: http://www.codeplex.com/MFCMAPI While we were working on the site for the Outlook MAPI Samples I mentioned that Codeplex allows projects to have a logo, and asked if anyone had any ideas. Next thing I knew, we had a designer lined up ready to draw a custom logo. Not…


Referral Madness

I’ve had a few customers lately getting hangs using Exchange’s MAPI to talk to Exchange. Their specific symptoms and repro steps varied from case to case, but in every case, the stack showed the client waiting on an NSPI call to return. NSPI is the interface the Exchange Address Book Provider uses to talk to…


When I Say Shutdown, I Mean Shut. Down.

Ryan posted an article about some changes we’re making in Outlook 2007 SP2. The gist is we’re changing Outlook’s shutdown behavior to always shutdown regardless of whether there are other running applications using the Outlook Object Model. He’s looking for feedback on the logic change, so be sure to send him your comments.


Get The OOF Out Of Here

Dan asked if I could post some CDO sample code he was working on. This sample script demonstrates a few interesting things: Dynamic session creation Accessing the associated contents table of a folder using HiddenMessages Looping backwards through a collection so deletion doesn’t affect the cursor Accessing properties documented in the Protocol Docs (PidTagRuleMsgProvider and…


October 2008 Release of MFCMAPI

The October 2008 Release (build is live: http://www.codeplex.com/MFCMAPI Better late than never right? I’ve been trying to refresh MFCMAPI every two months, but wasn’t able to devote the time to it I would have liked with all the work I’m doing on the MAPI documentation refresh. I did need to get this release out…


Rewriting the From Address in Exchange 2007

So – we’ve got customers who had been using the Exchange 2007 Transport Agent’s OnRoutedMessage event as a place to rewrite From addresses. This broke in Exchange 2007 SP1 due to some tweaks we made to the transport pipeline to solve a variety of other issues. We’ve got a fix for this now in Exchange…


Did I Send That?

[This is now documented here: http://msdn.microsoft.com/en-us/library/ff960604.aspx ] We had a customer here who wondered why messages imported into MAPI using MIMEToMAPI always appeared as draft messages. This is because the default value of PR_MESSAGE_FLAGS includes the MSGFLAG_UNSENT flag. Now – if you know you want your messages to not appear as drafts, the thing to…


Living Without OnSyncSave and OnSyncDelete

Matt has a blog post asking for customer feedback on the removal of OnSyncSave and OnSyncDelete from the next version of Exchange. Go over there to read it, or check out this snippet: I am working with the product team to discuss any scenarios where EWS notifications and Transport Agents might not be sufficient to…