https://bz.apache.org/bugzilla/show_bug.cgi?id=54021

--- Comment #6 from Javen O'Neal <[email protected]> ---
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to