]> git.ipfire.org Git - thirdparty/cups.git/blob - conf/mime.types
Add /admin/log section to cupsd.conf so that remote admin also controls remote
[thirdparty/cups.git] / conf / mime.types
1 #
2 # "$Id: mime.types 7670 2008-06-17 22:42:08Z mike $"
3 #
4 # Base MIME types file for CUPS.
5 #
6 # DO NOT EDIT THIS FILE, AS IT IS OVERWRITTEN WHEN YOU INSTALL NEW
7 # VERSIONS OF CUPS. Instead, create a "local.types" file that
8 # reflects your local configuration changes.
9 #
10 # Copyright 2007-2015 by Apple Inc.
11 # Copyright 1997-2007 by Easy Software Products.
12 #
13 # These coded instructions, statements, and computer programs are the
14 # property of Apple Inc. and are protected by Federal copyright
15 # law. Distribution and use rights are outlined in the file "LICENSE.txt"
16 # which should have been included with this file. If this file is
17 # file is missing or damaged, see the license at "http://www.cups.org/".
18 #
19
20 ########################################################################
21 #
22 # Format of Lines:
23 #
24 # super/type rules
25 #
26 # "rules" can be any combination of:
27 #
28 # ( expr ) Parenthesis for expression grouping
29 # + Logical AND
30 # , or whitespace Logical OR
31 # ! Logical NOT
32 # match("pattern") Pattern match on filename
33 # extension Pattern match on "*.extension"
34 # ascii(offset,length) True if bytes are valid printable ASCII
35 # (CR, NL, TAB, BS, 32-126)
36 # priority(number) Sets priority of type (0=lowest,
37 # 100=default, 200=highest)
38 # printable(offset,length) True if bytes are printable 8-bit chars
39 # (CR, NL, TAB, BS, 32-126, 128-254)
40 # regex(offset,"regex") True if bytes match regular expression
41 # string(offset,"string") True if bytes are identical to string
42 # istring(offset,"string") True if bytes are identical to
43 # case-insensitive string
44 # char(offset,value) True if byte is identical
45 # short(offset,value) True if 16-bit integer is identical
46 # int(offset,value) True if 32-bit integer is identical
47 # locale("string") True if current locale matches string
48 # contains(offset,range,"string") True if the range contains the string
49 #
50 # General Notes:
51 #
52 # MIME type names are case-insensitive. Internally they are converted
53 # to lowercase. Multiple occurrences of a type will cause the provided
54 # rules to be appended to the existing definition. If two types use the same
55 # rules to resolve a type and have the same priority, e.g. "doc" extension for
56 # "text/bar" and "text/foo", the returned type will be the first type as
57 # sorted in alphanumerically ascending order without regard to case. Thus,
58 # the "text/bar" type will match the "doc" extension first unless the
59 # "text/foo" type has specified a higher priority.
60 #
61 # The "printable" rule differs from the "ascii" rule in that it also
62 # accepts 8-bit characters in the range 128-255.
63 #
64 # String constants must be surrounded by "" if they contain whitespace.
65 # To insert binary data into a string, use the <hex> notation.
66 #
67
68 ########################################################################
69 #
70 # Application-generated files...
71 #
72
73 #application/msword doc string(0,<D0CF11E0A1B11AE1>)
74 application/pdf pdf regex(0,^[\n\r]*%PDF)
75 application/postscript ai eps ps string(0,%!) string(0,<04>%!) \
76 contains(0,128,<1B>%-12345X) + \
77 (contains(0,4096,"LANGUAGE=POSTSCRIPT") \
78 contains(0,4096,"LANGUAGE = Postscript") \
79 contains(0,4096,"LANGUAGE = PostScript") \
80 contains(0,4096,"LANGUAGE = POSTSCRIPT") \
81 (contains(0,4096,<0a>%!) + \
82 !contains(0,4096,"ENTER LANGUAGE")))
83
84 application/g-code gcode
85 application/sla stl string(0,"solid ") + contains(0,4096,"facet") + contains(0,4096,"vertex")
86 application/vnd.makerbot-s3g x3g
87 model/amf amf
88 model/vnd.collada+xml dae
89
90
91 ########################################################################
92 #
93 # Image files...
94 #
95
96 image/gif gif string(0,GIF87a) string(0,GIF89a)
97 image/png png string(0,<89>PNG)
98 image/jpeg jpeg jpg jpe string(0,<FFD8FF>) +\
99 (char(3,0xe0) char(3,0xe1) char(3,0xe2) char(3,0xe3)\
100 char(3,0xe4) char(3,0xe5) char(3,0xe6) char(3,0xe7)\
101 char(3,0xe8) char(3,0xe9) char(3,0xea) char(3,0xeb)\
102 char(3,0xec) char(3,0xed) char(3,0xee) char(3,0xef))
103 image/pwg-raster string(0,"RaS2") + string(4,PwgRaster<00>) priority(150)
104 image/tiff tiff tif string(0,MM<002A>) string(0,II<2A00>)
105 image/x-photocd pcd string(2048,PCD_IPI)
106 image/x-portable-anymap pnm
107 image/x-portable-bitmap pbm string(0,P1) string(0,P4)
108 image/x-portable-graymap pgm string(0,P2) string(0,P5)
109 image/x-portable-pixmap ppm string(0,P3) string(0,P6)
110 image/x-sgi-rgb rgb sgi bw icon short(0,474)
111 image/x-xbitmap xbm
112 image/x-xpixmap xpm ascii(0,1024) + string(3,"XPM")
113 #image/x-xwindowdump xwd string(4,<00000007>)
114 image/x-sun-raster ras string(0,<59a66a95>)
115
116 #image/fpx fpx
117 image/x-alias pix short(8,8) short(8,24)
118 image/x-bitmap bmp string(0,BM) + !printable(2,14)
119 image/x-icon ico
120
121 ########################################################################
122 #
123 # Text files...
124 #
125
126 application/x-cshell csh printable(0,1024) + string(0,#!) +\
127 (contains(2,80,/csh) contains(2,80,/tcsh))
128 application/x-perl pl printable(0,1024) + string(0,#!) +\
129 contains(2,80,/perl)
130 application/x-shell sh printable(0,1024) + string(0,#!) +\
131 (contains(2,80,/bash) contains(2,80,/ksh)\
132 contains(2,80,/sh) contains(2,80,/zsh))
133 application/x-csource c cxx cpp cc C h hpp \
134 printable(0,1024) + ! css + \
135 (string(0,/*) string(0,//)
136 string(0,#include) contains(0,1024,<0a>#include) \
137 string(0,#define) contains(0,1024,<0a>#define))
138 text/html html htm printable(0,1024) +\
139 (istring(0,"<HTML>") istring(0,"<!DOCTYPE"))
140 text/plain txt printable(0,1024)
141 text/css css
142
143
144 ########################################################################
145 #
146 # RSS feed type...
147 #
148
149 application/rss+xml rss
150
151
152 ########################################################################
153 #
154 # CUPS-specific types...
155 #
156
157 application/vnd.cups-banner string(0,'#CUPS-BANNER')
158 application/vnd.cups-command string(0,'#CUPS-COMMAND')
159 application/vnd.cups-pdf
160 application/vnd.cups-postscript
161 application/vnd.cups-ppd ppd string(0,"*PPD-Adobe:")
162 application/vnd.cups-raster string(0,"RaSt") string(0,"tSaR") \
163 (string(0,"RaS2") + !string(4,PwgRaster<00>)) string(0,"2SaR") \
164 string(0,"RaS3") string(0,"3SaR")
165 application/vnd.cups-raw (string(0,<1B>E) + !string(2,<1B>%0B)) \
166 string(0,<1B>@) \
167 (contains(0,128,<1B>%-12345X) + \
168 (contains(0,4096,"LANGUAGE=PCL") \
169 contains(0,4096,"LANGUAGE = PCL")))
170
171 ########################################################################
172 #
173 # Raw print file support...
174 #
175 # Comment the following type to prevent raw file printing.
176 #
177
178 application/octet-stream
179
180 #
181 # End of "$Id: mime.types 7670 2008-06-17 22:42:08Z mike $".
182 #