Bug 47922 - [PATCH] Added example HSMF application that converts a .msg file to text and extracts attachments
Summary: [PATCH] Added example HSMF application that converts a .msg file to text and ...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSMF (show other bugs)
Version: 3.6-dev
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on: 47903
Blocks:
  Show dependency tree
 
Reported: 2009-10-01 00:21 UTC by Bruno Girin
Modified: 2009-10-04 03:26 UTC (History)
0 users



Attachments
The new file that constitutes this patch, packaged from the top POI directory (2.20 KB, application/x-bzip)
2009-10-01 00:21 UTC, Bruno Girin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Girin 2009-10-01 00:21:20 UTC
Created attachment 24327 [details]
The new file that constitutes this patch, packaged from the top POI directory

Added a new example package and class for HSMF:
org.apache.poi.hsmf.examples.Msg2txt

This example class is a command line utility that takes a number of .msg files
as arguments and, for each foo.msg, does the following:
- creates foo.txt by extracting out of foo.msg the display versions of a number
of standard fields (To, CC, etc) as well as the body's text;
- if foo.msg contains any attachment, creates a foo-att directory and stores
the attachments in that directory using the names specified in foo.msg
Comment 1 Yegor Kozlov 2009-10-04 03:26:19 UTC
Applied in r821500

Thanks,
Yegor