On Wed, 14 Dec 2011, babug wrote:
I have used the following snippet to read the outlook file template(.oft).
http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/hsmf/examples/Msg2txt.java?revision=897167&view=co
Depending on what you want out, you may well be better off using Apache
Tika. Using HSMF directly gives you lots of control, using Tika provides
everything needed for the common case
It returns only the text content.So when i red the body content with
*msg.getRtfBody() *,i got content with following chunks inside.
{\*\htmltag84 *}\htmlrtf {\b \htmlrtf0
That looks like the kind of wacky rtf that Oulook is often fond of. You'll
need to ensure that your RTF parser (whichver you use) can handle this
style
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]