TIKA-2224 Mime sub-entry for .onepkg, a cab file holding other onenote files


Project: http://git-wip-us.apache.org/repos/asf/tika/repo
Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/009c143a
Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/009c143a
Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/009c143a

Branch: refs/heads/master
Commit: 009c143aedb95e356b2835b17fd66e9f7aec43d0
Parents: df14f78
Author: Nick Burch <[email protected]>
Authored: Thu Dec 22 01:21:33 2016 +0000
Committer: Nick Burch <[email protected]>
Committed: Thu Dec 22 01:21:33 2016 +0000

----------------------------------------------------------------------
 .../main/resources/org/apache/tika/mime/tika-mimetypes.xml  | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tika/blob/009c143a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
----------------------------------------------------------------------
diff --git 
a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml 
b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index a65fd03..ee255bd 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -504,9 +504,9 @@
   </mime-type>
 
   <mime-type type="application/onenote">
+    <alias type="application/msonenote"/>
     <acronym>OneNote</acronym>
     <glob pattern="*.onetmp"/>
-    <glob pattern="*.onepkg"/>
   </mime-type>
   <mime-type type="application/onenote;format=one">
     <glob pattern="*.one"/>
@@ -523,6 +523,7 @@
     <sub-class-of type="application/onenote"/>
   </mime-type>
   <mime-type type="application/onenote;format=onetoc2">
+    <_comment>OneNote Table of Contents</_comment>
     <glob pattern="*.onetoc"/>
     <glob pattern="*.onetoc2"/>
     <magic priority="50">
@@ -537,6 +538,12 @@
     </magic>
     <sub-class-of type="application/onenote"/>
   </mime-type>
+  <mime-type type="application/onenote; format=package">
+    <_comment>OneNote Package</_comment>
+    <glob pattern="*.onepkg"/>
+    <!-- Actually a CAB file of the other OneNote file formats! -->
+    <sub-class-of type="application/vnd.ms-cab-compressed" />
+  </mime-type>
 
   <mime-type type="application/parityfec"/>
   <mime-type type="application/patch-ops-error+xml">

Reply via email to