Discussion:
IConverterSession, changed in 2010?
(too old to reply)
Robert Simpson
2010-04-24 06:50:01 UTC
Permalink
I am calling MAPIToMimeStm() on an IConverterSession to save an MSG file as
EML. With Office 2007 installed, the resulting EML file is correct and is
written out as multipart/alternative, with plain text and html body sections.

Once I Installed Office 2010 and ran the same code, I no longer get the same
result. My EML file is now text/plain, and I only get the plaintext version
of the email.

Help!

I can provide a sample MSG on request. For simplicity, I used MFCMAPI and
did Session->"Convert MSG to EML", used the default options, and got exactly
the same results.

I used Office 2010 x86 edition on a Win7 x64 machine, and MFCMAPI 6.0.0.1017
to run the test.
Robert Simpson
2010-04-24 16:48:01 UTC
Permalink
So here's what I've learned. The PR_RTF_COMPRESSED stream contains the html
of the e-mail. However, the PR_HTML_BODY property is missing. If I query
that property even though it's missing, it'll still return the HTML to me.
If I take the resulting HTML and write it back to PR_HTML_BODY and then save
it as EML, it writes the EML properly.
Post by Robert Simpson
I am calling MAPIToMimeStm() on an IConverterSession to save an MSG file as
EML. With Office 2007 installed, the resulting EML file is correct and is
written out as multipart/alternative, with plain text and html body sections.
Once I Installed Office 2010 and ran the same code, I no longer get the same
result. My EML file is now text/plain, and I only get the plaintext version
of the email.
Help!
I can provide a sample MSG on request. For simplicity, I used MFCMAPI and
did Session->"Convert MSG to EML", used the default options, and got exactly
the same results.
I used Office 2010 x86 edition on a Win7 x64 machine, and MFCMAPI 6.0.0.1017
to run the test.
Robert Simpson
2010-04-24 17:07:01 UTC
Permalink
Minor scratch. MFCMAPI reported MAPI_E_NOTFOUND when it showed
PR_HTML/PR_HTML_BODY, but when I double-clicked to edit the property, it
showed me the HTML. If I made a change to it and closed the dialog, then
saved the EML, it worked properly in Office 2010.

In my own code however, I had to get the html from PR_RTF_COMPRESSED, and
write it back into PR_HTML_BODY to save the EML properly.
Post by Robert Simpson
So here's what I've learned. The PR_RTF_COMPRESSED stream contains the html
of the e-mail. However, the PR_HTML_BODY property is missing. If I query
that property even though it's missing, it'll still return the HTML to me.
If I take the resulting HTML and write it back to PR_HTML_BODY and then save
it as EML, it writes the EML properly.
Post by Robert Simpson
I am calling MAPIToMimeStm() on an IConverterSession to save an MSG file as
EML. With Office 2007 installed, the resulting EML file is correct and is
written out as multipart/alternative, with plain text and html body sections.
Once I Installed Office 2010 and ran the same code, I no longer get the same
result. My EML file is now text/plain, and I only get the plaintext version
of the email.
Help!
I can provide a sample MSG on request. For simplicity, I used MFCMAPI and
did Session->"Convert MSG to EML", used the default options, and got exactly
the same results.
I used Office 2010 x86 edition on a Win7 x64 machine, and MFCMAPI 6.0.0.1017
to run the test.
atp
2011-08-23 14:51:13 UTC
Permalink
Robert Simpson wrote on 04/24/2010 02:50 ET
Post by Robert Simpson
I am calling MAPIToMimeStm() on an IConverterSession to save an MSG file a
EML. With Office 2007 installed, the resulting EML file is correct and i
written out as multipart/alternative, with plain text and html body sections
Once I Installed Office 2010 and ran the same code, I no longer get the sam
result. My EML file is now text/plain, and I only get the plaintext versio
of the email
Help
I can provide a sample MSG on request. For simplicity, I used MFCMAPI an
did Session->"Convert MSG to EML", used the default options, an
got exactl
the same results
I used Office 2010 x86 edition on a Win7 x64 machine, and MFCMAPI 6.0.0.101
to run the test
Hello can u Provide code or help , How to Implement IConverterSession
MAPITOMime() in c# code. Because I have use Outlook.MailItem.for developin
plugin using com add-in in c# and want to convert MAPI TO MIME. kindl
provid
Help on it



Thanks

Loading...