https://bz.apache.org/bugzilla/show_bug.cgi?id=69315

--- Comment #3 from Dominik Stadler <dominik.stad...@gmx.at> ---
I tried to reproduce the proposed fix, but could not. 

    @Test
    void testBug69315() throws Exception {
        POIDataSamples testData = POIDataSamples.getPOIFSInstance();
        try (MAPIMessage mapi = new
MAPIMessage(testData.openResourceAsStream("MailSentPropertyMultiple.msg"))) {
            assertNotNull(mapi.getAttachmentFiles());
            assertNotNull(mapi.getDisplayBCC());
            assertNotNull(mapi.getMessageDate());

            AttachmentChunks[] attachments = mapi.getAttachmentFiles();

            for (AttachmentChunks attachment : attachments) {

                DirectoryChunk chunkDirectory =
attachment.getAttachmentDirectory();
                if (chunkDirectory != null) {
                    MAPIMessage attachmentMSG =
chunkDirectory.getAsEmbeddedMessage();
                    assertNotNull(attachmentMSG);
                    String body = attachmentMSG.getTextBody();
                    assertNotNull(body);
                }
            }

            assertNull(mapi.getSummaryInformation());
            assertNull(mapi.getDocumentSummaryInformation());

            Chunks chunks = mapi.getMainChunks();
            assertNotNull(chunks);
            //assertEquals("", chunks.getProperties().keySet().toString());
        }
    }



Can you extend this test-case to reproduce and verify the suggested changes?


FYI, I don't know much about the format and the implementation in POI, it was
done years ago by people who left since then.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to