bbottema / outlook-message-parser

A Java parser for Outlook messages (.msg files)
76 stars 35 forks source link

getBodyHTML() returns null for a specific msg file #39

Closed pborissow closed 3 years ago

pborissow commented 3 years ago

I have a bunch of msg files and for the most part, the OutlookMessageParser is working great! However, there is one file that is not working for some reason. The getBodyHTML() is returning null. I can open the message using Outlook and it looks fine. I am hesitant to attach the msg because it contains proprietary information but I would be more than happy to email it to you or share it with you some other way.

bbottema commented 3 years ago

Hmm, I would like to take a look indeed. If you're OK with it, you can email it to me. I'll treat it with discretion.

pborissow commented 3 years ago

Cool! Email is on it's way

bbottema commented 3 years ago

So I had a quick look, but I actually think there's no HTML body, only RTF.

If you look at msg.getConvertedBodyHTML(), it actually returns the same HTML you see in Outlook if you go to view source:

image image

Now look at the HTML from getConvertedBodyHTML():

image

It's exactly the same.

bbottema commented 3 years ago

I'm closing this for now, unless you have some reason to suspect a bug after all.