Parsing .msg files in JavaScript

Wongadob picture Wongadob · Mar 25, 2013 · Viewed 14.1k times · Source

Does anybody know of any JavaScript libraries that will read/parse a microsoft .msg file. I am writing a system that requires a viewer to dispay .msg files that have been stored on a server. I will probably also have to do .eml in the future too. I am not using .net framework or ASP. the project is HTML/CSS/Javascript+JQuery only.

I would need to extract only e-mail addresses for recipients / sender, subject, attachments (file names not the actual files), body (text & html), date sent etc.

Answer

Markus Peröbner picture Markus Peröbner · Jul 21, 2017

The msg.reader library seems to do the job.