header(xhtml, "Recipients", msg.getRecipientEmailAddress());
} catch(ChunkNotFoundException e) {}
xhtml.endElement("dl");
// Get the message body. Preference order is: html, rtf, text
Chunk htmlChunk = null;
Chunk rtfChunk = null;
Chunk textChunk = null;
for(Chunk chunk : msg.getMainChunks().getChunks()) {
if(chunk.getChunkId() == MAPIProperty.BODY_HTML.id) {
htmlChunk = chunk;
}
if(chunk.getChunkId() == MAPIProperty.RTF_COMPRESSED.id) {