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: How to extract embedded documents from a .msg
Date Mon, 13 Jun 2011 14:46:43 GMT
On Mon, 13 Jun 2011, Ezequiel Foncubierta wrote:
> Problem is that embedded attachments (e.g. when you attach a .msg file) 
> have null values in attachData, attachExtension, attachFileName and so 
> on. Only attachmentDirectory (of type DirectoryChunk) has a value. I 
> think need to extract the attachment from a DirectoryChunk object, and I 
> don't know if there is a way to do it.

Hmm. The only files I've ever seen with a DirectoryChunk but no attachData 
were where there was another MAPI Message embedded inside the first

Assuming that's what you have, just call getAsEmbededMessage() on the 
directory to get your message


To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org

View raw message