Search Apache POI

POI-HMEF - Java API To Access Microsoft Transport Neutral Encoding Files (TNEF)

Overview

HMEF is the POI Project's pure Java implementation of the TNEF (Transport Neurtral Encoding Format), aka winmail.dat, which is used by Outlook and Exchange in some situations.

Currently, HMEF provides a low-level, read-only api for accessing core TNEF attributes. It is able to provide access to both TNEF and MAPI attributes, and low level access to attachments. Compressed RTF is not yet fully supported, and user-facing access to common attributes and attachment contents is not yet present.

HMEF is currently very much a work-in-progress, and we hope to add a text extractor and attachment extractor in the not too distant future.

To get a feel for the contents of a file, and to track down where data of interest is stored, HMEF comes with HMEFDumper to print out the contents of the file.

Note
This code currently lives the scratchpad area of the POI SVN repository. Ensure that you have the scratchpad jar or the scratchpad build area in your classpath before experimenting with this code.
by Nick Burch