Package: mhonarc
Version: 2.6.16-1
Severity: minor

The definitions for mime types for MS Office 2007 (XML format) are missing from 
the mhmimetypes.pl file.

Patch attached.  Added three lines; one each for docx, xlsx, and pptx.
Tested, works great here.

Cheers,
Peter
--- /home/nemesis/mhmimetypes.pl	2011-03-04 17:25:00.000000000 +1100
+++ /usr/share/mhonarc/mhmimetypes.pl	2011-03-04 17:27:35.000000000 +1100
@@ -48,6 +48,7 @@
     'application/ms-powerpoint',	'ppt:MS-Powerpoint presentation',
     'application/ms-project',		'mpp:MS-Project file',
     'application/msword',		'doc:MS-Word document',
+    'application/vnd.openxmlformats-officedocument.wordprocessingml.document',		'docx:MS-Word 2007 document',
     'application/octet-stream', 	'bin:Binary data',
     'application/oda', 			'oda:ODA file',
     'application/pdf', 			'pdf:Adobe PDF document',
@@ -71,7 +72,9 @@
     'application/vnd.lotus-wordpro',    'lwp,sam:Lotus WordPro',
     'application/vnd.mif', 		'mif:Frame MIF document',
     'application/vnd.ms-excel',         'xls:MS-Excel spreadsheet',
+    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',		'xlsx:MS-Excel 2007 spreadsheet',
     'application/vnd.ms-powerpoint',    'ppt:MS-Powerpoint presentation',
+    'application/vnd.openxmlformats-officedocument.presentationml.presentation',    'pptx:MS-Powerpoint 2007 presentation',
     'application/vnd.ms-project',	'mpp:MS-Project file',
     'application/vnd.stardivision.calc', 'sdc:StarCalc spreadsheet',
     'application/vnd.stardivision.chart', 'sds:StarChart document',

Reply via email to