You will need an MSG and / or EML converter library. I have used Mailbee.NET with success in the past, but Aspose or any other commercial library should work the same. Of course, you can always code your own MSG parser following the specifications , but won't you focus on your web solution?
Once you have the library, just wrap it in the front of the service and create AJAX requests in JS to extract the model data for display using the user interface. To handle these dynamic AJAX requests, you will need a page handler - node.js, ASPX, JSP, PHP, etc.
As a side note, it would be very inefficient to pull out the entire MSG for the client only to extract some of the metadata. Consider an MSG with 50 MB attachments - if you only need file names - the application will be useless / slow until it downloads all 50 MB. I donโt think the browser (or users) will like it.
source share