Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Msg2txt - Apache POI Outlook Email Example
What is Msg2txt example in the Apache POI package? How to run Msg2txt example?
✍: FYIcenter.com
Msg2txt example in the Apache POI package is created by Bruno Girin.
It reads one or several Outlook email (*.msg) files and for each of them creates
a text file from available chunks and a directory that contains
attachments.
Msg2txt example uses the Horrible Stupid Mail Format (HSMF) API, which supports Outlook email files in *.msg format.
Here is the command to run Msg2txt to convert Outlook email file in *.msg file format.
C:\fyicenter>c:\local\jdk-1.8.0\bin\java
-cp .;C:\local\poi-3.15\poi-examples-3.15.jar;
C:\local\poi-3.15\poi-3.15.jar;
C:\local\poi-3.15\poi-scratchpad-3.15.jar
org.apache.poi.hsmf.examples.Msg2txt yahoo.msg
Note that the yahoo.msg file was created with Outlook by saving the Yahoo daily stories email.
If you open the output file, yahoo.txt, in Notepad editor, you will see text extracted from the Outlook email file:
From: Yahoo To: Trump, John CC: BCC: Subject: Your Daily Yahoo stories for Wednesday <https://email.communications.yahoo.com/t/dbebJmF0T36BABFKsZaD1DJaaL... <https://email.communications.yahoo.com/t/dcebJmF0T36BABFKsZaD1DJaaL... <https://s.yimg.com/dh/ap/us/crm/dy/spcr.gif> <https://email.communications.yahoo.com/t/dcebJmF0T36BABFKsZaD1DJaaL... ...
2017-02-08, ∼3102🔥, 0💬
Popular Posts:
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
Apache Log4j IOStreams is a Log4j API extension that provides numerous classes from java.io that can...
What Is mail.jar of JavaMail 1.4.2? I got the JAR file from javamail-1.4.2.zip. mail.jar in javamail...
JDK 11 java.xml.crypto.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) Crypto modu...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...