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/..
20 application/javascript js
24 application/pgp-encrypted pgp
25 application/pgp-signature sig asc
26 application/pkcs7-mime p7m p7c
27 application/pkcs7-signature p7s
28 application/postscript ps eps epsf epsi
29 application/rdf+xml rdf owl
30 application/rss+xml rss
31 application/x-bcpio bcpio
32 application/x-bittorrent torrent
33 application/x-bzip bz tbz
34 application/x-bzip2 bz2 tbz2 boz
35 application/x-compress z
36 application/x-cpio cpio
37 application/x-csh csh tcsh
39 application/x-gzip gz tgz emz
40 application/x-latex latex
41 application/x-perl pl pm perl
42 application/x-sh sh bash
43 application/x-shar shar
46 application/x-texinfo texinfo texi
47 application/x-x509-ca-cert der crt
48 application/x-xfig fig
50 application/xhtml+xml xhtml xht
51 application/xml xml xsl xsd
52 application/xml-dtd dtd
53 application/xslt+xml xslt
56 audio/midi mid midi kar rmi
57 audio/mp4 mp4a m4a m4b
58 audio/mpeg mpga mp2 mp2a mp3 m2a m3a
63 audio/x-pn-realaudio ram ra
67 image/jpeg jpg jpeg jpe jif jfif jfi
69 image/svg+xml svg svgz
71 image/x-ms-bmp bmp dib
75 image/x-xwindowdump xwd
76 message/rfc822 eml mime mht mhtml
81 text/plain txt text conf cfg def list log in m4 pod MF properties
83 text/troff t tr roff man me ms
84 text/x-assembly s S asm
85 text/x-asciidoc asciidoc adoc ad
87 text/x-c++hdr hpp hxx hh h++ hp
88 text/x-c++src cpp cxx cc c++
93 text/x-diff diff patch
100 text/x-perl pl pm al perl
101 text/x-php php php3 php4
103 text/x-rst rst rest restx
109 text/x-web-markdown md mdtext mkd markdown