Hello,
I tried to write a simple class to read a subject from outlook .msg
file. I got this exception:


org.apache.poi.hsmf.exceptions.ChunkNotFoundException:
__substg1.0_0037001E was named, but not found in POIFS object
        at 
org.apache.poi.hsmf.parsers.POIFSChunkParser.getDocumentNode(POIFSChunkParser.java:121)
        at 
org.apache.poi.hsmf.parsers.POIFSChunkParser.getDocumentNode(POIFSChunkParser.java:137)
        at 
org.apache.poi.hsmf.MAPIMessage.getStringFromChunk(MAPIMessage.java:68)
        at org.apache.poi.hsmf.MAPIMessage.getSubject(MAPIMessage.java:90)
        at SimpleMSGTitleReader.main(SimpleMSGTitleReader.java:13)
Exception in thread "main"

source:

public class SimpleMSGTitleReader {

        public static void main(String[] args)
                throws IOException, ChunkNotFoundException
        {
                MAPIMessage msg = new MAPIMessage("aa.msg");
                System.out.println("Subject: "+msg.getSubject());
        }
}

What's wrong with it? How can i solve this issue?

Thanks

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to