On Fri, 6 Jul 2012, nitinjaiin wrote:
The attachments could be .MSGs or any other file like .doc, .xls etc.
I am unable to save the original .MSG file without the attachments. Multiple
warnings can be included if it is not possible without the warnings.
You'll want to do a filtered copy of the POIFS. Either iterate through the
nodes and pick yourself which to copy and which not to, or just something
like FilteringDirectoryNode
<http://poi.apache.org/apidocs/org/apache/poi/poifs/filesystem/FilteringDirectoryNode.html>
when you do it. EntryUtils
<http://poi.apache.org/apidocs/org/apache/poi/poifs/filesystem/EntryUtils.html>
should help you with the copying
See http://poi.apache.org/poifs/how-to.html for more on POIFS. Use
HSMFDump
<http://poi.apache.org/apidocs/org/apache/poi/hsmf/dev/HSMFDump.html> to
help you work out which bits to copy, and which bits to ignore
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]