Error code 0x80004002 when export message

Jun 13, 2013 at 1:52 PM
when I try to export message from MFCMAPI, I choose Format in EML file (using PR_INTERNET_CONTENT), and then I got the error message says mapi_e_interface_not_supported == 0x80004002
Function IpMessage -> OpenProperty ...
File File.cpp
Line 639

I tried to use other format, works. but I just want to get full rfc822 format message.

Any ideas about this?
Thanks!
Coordinator
Jun 13, 2013 at 2:43 PM
PR_INTERNET_CONTENT is a property that was supported on Exchange 2000 (and perhaps 2003) back when we had a separate store for SMTP/MIME data. It’s not expected to work against modern versions of Exchange.

Once a message has arrived in Exchange, there is no "full rfc822" message anymore. It was converted to MAPI and the original was thrown away. You can still get a copy of the original headers in PR_TRANSPORT_MESSAGE_HEADERS, but if you want an EML, your only option is to convert the message using Outlook's MAPI<->MIME conversion API. Or do it by hand. But either way, you're not getting the original message because it no longer exists.