poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: Parse outlook format Template (.oft) extension
Date Wed, 14 Dec 2011 11:17:19 GMT
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: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message