On 10/07/12 07:31, lucaro wrote:
can anyone help me, How to read .msg file inside another .msg file.
They're stored as a special kind of attachment
First up, get the attachments
http://poi.apache.org/apidocs/org/apache/poi/hsmf/MAPIMessage.html#getAttachmentFiles()
Loop over the attachment chunks, looking for one with a directory that
isn't null:
http://poi.apache.org/apidocs/org/apache/poi/hsmf/datatypes/AttachmentChunks.html#attachmentDirectory
On the directory chunk, get the embedded message, and process just as
you would a regular message
http://poi.apache.org/apidocs/org/apache/poi/hsmf/datatypes/DirectoryChunk.html#getAsEmbededMessage()
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]