I would like to read the text and binary attachments in a saved Outlook message (.msg file) from a Java application, without resorting to native code (JNI, Java Native Interface).
Apache POI-HSMF seems to be in the right direction, but it's in very early stages of development...
Right-click any file with an . msg file name extension, point to Open with and then click Choose default program. In the Open with dialog box, select Always use the selected program to open this kind of file. Then, select Outlook (desktop) and then click OK.
Open the MSG with a third-party application (Windows & Mac): If you don't have access to Outlook, you can use any third-party application that Google shows you. (If you're a Mac user, you'll have to do this by default because the Mac's Outlook doesn't open or export MSGs.)
msgparser is a small open source Java library that parses Outlook .msg files and provides their content using Java objects. msgparser uses the Apache POI - POIFS library to parse the message files which use the OLE 2 Compound Document format.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With