bbottema / outlook-message-parser

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

Embedded image name not resolved correctly, when it's not equal to filename #12

Closed fadeyev closed 4 years ago

fadeyev commented 4 years ago

I had this issue on Outlook 2013. Steps to reproduce:

  1. Create a new email
  2. Take a screenshot to the clipboard
  3. Paste it in the email
  4. Send the email
  5. Save the msg file and parse it

In the HTML body the image will be referenced as cid:image001.gif@12BE3215.A973BD32 when both filename and longFilename of OutlookFileAttachment will be image001.gif. Seems like some information is lost here. When trying to send parsed email again embedded images are not resolved correctly.

bbottema commented 4 years ago

Hmm, I was unable to reproduce this with Outlook 365. Also, the screenshot was sent as jpg not gif. I used received message not the sent one, I don't think that should make any difference.

Do you have an example .msg for me to reproduce it with?

fadeyev commented 4 years ago

Sorry, can't attach example

bbottema commented 4 years ago

Closing as I can't reproduce this or analyse this until I have an example .msg.