papnkukn / eml-format

RFC 822 EML file format parser and builder
MIT License
88 stars 53 forks source link

Unable to get html source of an email #25

Closed vletoux closed 3 years ago

vletoux commented 3 years ago

While analysing spam email, I found this example whose html source code cannot be extracted. It opens successfully in outlook on html mode

Here is the image: image

And the source code copy pasted as a gist https://gist.github.com/vletoux/036e5cc06f4718f4aa74947933a0a394

My nodejs knowledge is too poor to have a successful root cause analysis

zhanghaifeng213 commented 3 years ago

image Add this code to the source code to have a try

MarcVillain commented 3 years ago

The code you provided does resolve the issue for me, thank you.

papnkukn commented 3 years ago

Thank you very much for the contribution