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