This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Nevertherless is there any way for converting a Email to MIME via the Java Remote interface or to export the Email as EML, which is my primary goal?
It's not easy task to export email's as EML files for one major reason:
- What if your email is not in MIME format but in RTF instead?
You will have to convert Notes "Body" RTF field to HTML which is not easy task if convertToMIME function does not work for you.
Here's part from Domino Designer help:
Converts a document in Notes® format to MIME format similar to a mail router.
Note: This method is new in Release 8.5.1.
•Document.CONVERT_RT_TO_HTML (2) produces MIME output with a Text/HTML part that is a representation of the Notes rich text.
Some data loss is possible in the rendering. Improvements in fidelity may occur at any time.
IBM mentions fidelity loss here, is is especially true if RTF fields are of complicated nature (embedded views, nested tables, sections, etc..)
If your emails are in MIME format than process is pretty much straightforward, you need to call doc.getMIMEEntity, and write it in raw form to file on the hard drive with eml extension.