2 # This is the set of MIME types that will become compiled into S-nail;
3 # they are used as a fallback registry in case that there is no ~/.mime.types
5 # Lines starting with the number sign '#' are comments and ignored, empty lines
6 # are ignored, others must look like 'TYPEwhitespaceEXTENSION'.
7 # Note that these lines will be compiled AS IS, so each byte counts!
8 # <http://svn.apache.org/viewvc/tika/trunk/tika-core/src/main/resources/\
9 # org/apache/tika/mime/tika-mimetypes.xml> is a good place to look for a rather
10 # complete list of IANA registered and unregistered MIME types.
11 # XXX Maybe write an extractor that converts the tika content to our own
12 # XXX mime.types? Maybe extend our parser to support the extension that adds
13 # XXX function() rules. Then, fully map the tika DB and S-nail woul have its
14 # XXX own magic detection!!
15 # XXX Anyway, it would be nice to an additional "is-text" flag, so that S-nail
16 # XXX could itself choose wether something is text / displayable or not; yet
17 # XXX text/ is used to decide, but sh,json,js,tex etc. are all application/..
19 application/javascript js
23 application/pgp-encrypted pgp
24 application/pgp-signature sig asc
25 application/pkcs7-mime p7m p7c
26 application/pkcs7-signature p7s
27 application/postscript ps eps epsf epsi
28 application/rdf+xml rdf owl
29 application/rss+xml rss
30 application/x-bcpio bcpio
31 application/x-bittorrent torrent
32 application/x-bzip bz tbz
33 application/x-bzip2 bz2 tbz2 boz
34 application/x-compress z
35 application/x-cpio cpio
36 application/x-csh csh tcsh
38 application/x-gzip gz tgz emz
39 application/x-latex latex
40 application/x-perl pl pm perl
41 application/x-sh sh bash
42 application/x-shar shar
45 application/x-texinfo texinfo texi
46 application/x-x509-ca-cert der crt
47 application/x-xfig fig
49 application/xhtml+xml xhtml xht
50 application/xml xml xsl xsd
51 application/xml-dtd dtd
52 application/xslt+xml xslt
55 audio/midi mid midi kar rmi
56 audio/mp4 mp4a m4a m4b
57 audio/mpeg mpga mp2 mp2a mp3 m2a m3a
62 audio/x-pn-realaudio ram ra
66 image/jpeg jpg jpeg jpe jif jfif jfi
68 image/svg+xml svg svgz
70 image/x-ms-bmp bmp dib
74 image/x-xwindowdump xwd
75 message/rfc822 eml mime mht mhtml
80 text/plain txt text conf cfg def list log in m4 pod MF properties
82 text/troff t tr roff man me ms
83 text/x-assembly s S asm
84 text/x-asciidoc asciidoc adoc ad
86 text/x-c++hdr hpp hxx hh h++ hp
87 text/x-c++src cpp cxx cc c++
92 text/x-diff diff patch
99 text/x-perl pl pm al perl
100 text/x-php php php3 php4
102 text/x-rst rst rest restx
108 text/x-web-markdown md mdtext mkd markdown