poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54021] Cannot read message body from 2010 MSG file
Date Thu, 05 Jan 2017 10:38:42 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=54021

--- Comment #6 from Javen O'Neal <onealj@apache.org> ---
Created attachment 34595
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34595&action=edit
unit test

You got a ChunkNotFoundException when calling getTextBody() because the message
had an Html body instead of a plain text body. Only one body type (plain text,
html, rtf) can be saved in a message.

This is the error that you would get if you checked getTextBody() on a message
containing an html body.

Chunk not found
org.apache.poi.hsmf.exceptions.ChunkNotFoundException: Chunk not found
        at
org.apache.poi.hsmf.MAPIMessage.getStringFromChunk(MAPIMessage.java:181)
        at org.apache.poi.hsmf.MAPIMessage.getTextBody(MAPIMessage.java:194)
        at
org.apache.poi.hsmf.TestFileWithAttachmentsRead.test54021_read_text_body(TestFileWithAttachmentsRead.java:190)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message