From ba1e2c8b14dcd1844e59860ab5942f98ab7b4c7e Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Sun, 10 Jul 2016 01:41:15 +0000 Subject: [PATCH] Add comments describing Outlook .msg DirectoryNode names git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1752054 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/extractor/ExtractorFactory.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java b/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java index ce9c819fa..5d9b74f0d 100644 --- a/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java +++ b/src/ooxml/java/org/apache/poi/extractor/ExtractorFactory.java @@ -329,13 +329,16 @@ public class ExtractorFactory { final String[] outlookEntryNames = new String[] { // message bodies, saved as plain text (PtypString) - // https://msdn.microsoft.com/en-us/library/cc433490(v=exchg.80).aspx - "__substg1.0_1000001E", //PidTagBody - "__substg1.0_1000001F", //PidTagBody - "__substg1.0_0047001E", //PidTagMessageSubmissionId - "__substg1.0_0047001F", //PidTagMessageSubmissionId - "__substg1.0_0037001E", //PidTagSubject - "__substg1.0_0037001F", //PidTagSubject + // The first short (0x1000, 0x0047, 0x0037) refer to the Property ID (see [MS-OXPROPS].pdf) + // the second short (0x001e, 0x001f, 0x0102) refer to the type of data stored in this entry + // https://msdn.microsoft.com/endatatypes.Ex-us/library/cc433490(v=exchg.80).aspx + // @see org.apache.poi.hsmf.Types.MAPIType + "__substg1.0_1000001E", //PidTagBody ASCII + "__substg1.0_1000001F", //PidTagBody Unicode + "__substg1.0_0047001E", //PidTagMessageSubmissionId ASCII + "__substg1.0_0047001F", //PidTagMessageSubmissionId Unicode + "__substg1.0_0037001E", //PidTagSubject ASCII + "__substg1.0_0037001F", //PidTagSubject Unicode }; for (String entryName : outlookEntryNames) { if (poifsDir.hasEntry(entryName)) {