9 # Our HTML parser knows to ignore PHP code.
12 # Archived HTML formats:
13 maff application/x-maff
14 mht application/x-mimearchive
15 mhtml application/x-mimearchive
21 # Comma-Separated Values:
28 ps application/postscript
29 eps application/postscript
30 ai application/postscript
33 # FIXME: need to find sample documents to test all of these.
34 odt application/vnd.oasis.opendocument.text
35 ods application/vnd.oasis.opendocument.spreadsheet
36 odp application/vnd.oasis.opendocument.presentation
37 odg application/vnd.oasis.opendocument.graphics
38 odc application/vnd.oasis.opendocument.chart
39 odf application/vnd.oasis.opendocument.formula
40 odb application/vnd.oasis.opendocument.database
41 odi application/vnd.oasis.opendocument.image
42 odm application/vnd.oasis.opendocument.text-master
43 ott application/vnd.oasis.opendocument.text-template
44 ots application/vnd.oasis.opendocument.spreadsheet-template
45 otp application/vnd.oasis.opendocument.presentation-template
46 otg application/vnd.oasis.opendocument.graphics-template
47 otc application/vnd.oasis.opendocument.chart-template
48 otf application/vnd.oasis.opendocument.formula-template
49 oti application/vnd.oasis.opendocument.image-template
50 oth application/vnd.oasis.opendocument.text-web
52 # OpenOffice/StarOffice documents:
53 sxc application/vnd.sun.xml.calc
54 stc application/vnd.sun.xml.calc.template
55 sxd application/vnd.sun.xml.draw
56 std application/vnd.sun.xml.draw.template
57 sxi application/vnd.sun.xml.impress
58 sti application/vnd.sun.xml.impress.template
59 sxm application/vnd.sun.xml.math
60 sxw application/vnd.sun.xml.writer
61 sxg application/vnd.sun.xml.writer.global
62 stw application/vnd.sun.xml.writer.template
64 # MS Office 2007 formats:
66 docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
68 dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
70 xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
72 xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
73 # PowerPoint 2007 presentation
74 pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
75 # PowerPoint 2007 slideshow
76 ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
77 # PowerPoint 2007 template
78 potx application/vnd.openxmlformats-officedocument.presentationml.template
79 xps application/vnd.ms-xpsdocument
81 # Macro-enabled variants - these appear to be the same formats as the
82 # above. Currently we just treat them as the same mimetypes to avoid
83 # having to check for twice as many possible content-types.
84 # MS say: application/vnd.ms-word.document.macroEnabled.12
85 docm application/vnd.openxmlformats-officedocument.wordprocessingml.document
86 # MS say: application/vnd.ms-word.template.macroEnabled.12
87 dotm application/vnd.openxmlformats-officedocument.wordprocessingml.template
88 # MS say: application/vnd.ms-excel.sheet.macroEnabled.12
89 xlsm application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
90 # MS say: application/vnd.ms-excel.template.macroEnabled.12
91 xltm application/vnd.openxmlformats-officedocument.spreadsheetml.template
92 # MS say: application/vnd.ms-powerpoint.presentation.macroEnabled.12
93 pptm application/vnd.openxmlformats-officedocument.presentationml.presentation
94 # MS say: application/vnd.ms-powerpoint.slideshow.macroEnabled.12
95 ppsm application/vnd.openxmlformats-officedocument.presentationml.slideshow
96 # MS say: application/vnd.ms-powerpoint.presentation.macroEnabled.12
97 potm application/vnd.openxmlformats-officedocument.presentationml.template
99 # Some other word processor formats:
101 dot application/msword
102 wpd application/vnd.wordperfect
103 wps application/vnd.ms-works
105 wpt application/vnd.ms-works
107 abw application/x-abiword
109 zabw application/x-abiword-compressed
111 # Leave .doc files to libmagic, as they may actually be RTF (AbiWord
112 # actually saves RTF when asked to save as .doc, and Microsoft Word
113 # quietly loads RTF files with a .doc extension), or plain-text.
116 xls application/vnd.ms-excel
117 xlb application/vnd.ms-excel
119 xlt application/vnd.ms-excel
121 xla application/vnd.ms-excel
122 # Later Microsoft Works produced XL format but with a different extension.
123 xlr application/vnd.ms-excel
124 ppt application/vnd.ms-powerpoint
125 # Powerpoint slideshow
126 pps application/vnd.ms-powerpoint
127 # Adobe PageMaker apparently uses .pub for an unrelated format, but
128 # libmagic seems to misidentify MS .pub as application/msword, so we
129 # can't just leave it to libmagic. We don't handle Adobe PageMaker
130 # files yet, so this isn't a big issue currently.
131 pub application/x-mspublisher
133 msg application/vnd.ms-outlook
135 oft application/vnd.ms-outlook
137 # Outlook saved MIME message
146 dvi application/x-dvi
156 deb application/x-debian-package
157 udeb application/x-debian-package
160 rpm application/x-redhat-package-manager
163 atom application/atom+xml
165 # Extensions to quietly ignore:
193 sqlite-journal ignore