aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java18
-rw-r--r--test-data/hsmf/51873.msgbin0 -> 10240 bytes
2 files changed, 17 insertions, 1 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java b/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
index 2ef19603e7..721f60591c 100644
--- a/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
+++ b/src/scratchpad/testcases/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
@@ -332,5 +332,21 @@ public final class TestPOIFSChunkParser extends TestCase {
} catch(ChunkNotFoundException e) {
fail();
}
- }
+ }
+
+ /**
+ * Bugzilla #51873 - Outlook 2002 files created with dragging and
+ * dropping files to the disk include a non-standard named streams
+ * such as "Olk10SideProps_0001"
+ */
+ public void testOlk10SideProps() throws Exception {
+ POIFSFileSystem poifs = new POIFSFileSystem(
+ new FileInputStream(samples.getFile("51873.msg"))
+ );
+ MAPIMessage msg = new MAPIMessage(poifs);
+
+ // Check core details came through
+ assertEquals("bubba@bubbasmith.com", msg.getDisplayTo());
+ assertEquals("Test with Olk10SideProps_ Chunk", msg.getSubject());
+ }
}
diff --git a/test-data/hsmf/51873.msg b/test-data/hsmf/51873.msg
new file mode 100644
index 0000000000..28a0a57db5
--- /dev/null
+++ b/test-data/hsmf/51873.msg
Binary files differ