2 .\" "$Id: mime.types.man 6649 2007-07-11 21:46:42Z mike $"
4 .\" mime.types man page for the Common UNIX Printing System (CUPS).
6 .\" Copyright 2007 by Apple Inc.
7 .\" Copyright 1997-2006 by Easy Software Products.
9 .\" These coded instructions, statements, and computer programs are the
10 .\" property of Apple Inc. and are protected by Federal copyright
11 .\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 .\" which should have been included with this file. If this file is
13 .\" file is missing or damaged, see the license at "http://www.cups.org/".
15 .TH mime.types 5 "Common UNIX Printing System" "12 February 2006" "Apple Inc."
17 mime.types \- mime type description file for cups
19 The \fImime.types\fR file defines the recognized file types.
21 Additional file types can be added to \fImime.types\fR or
22 (preferably) in additional files in the CUPS configuration
23 directory with the extension ".types".
25 Each line in the \fImime.types\fR file is a comment, blank, or
26 rule line. Comment lines start with the # character. Rule lines
27 start with the MIME type name and are optionally followed by a
28 series of file recognition rules that are used to automatically
29 identify print and web files:
33 super/type rule [ ... ruleN]
35 The rules may be grouped using parenthesis, joined using "+" for a
36 logical AND and "," or whitespace for a logical OR, and negated using
39 Rules take two forms - a filename extension by itself and functions with test
40 values inside parenthesis. The following functions are available:
44 Pattern match on filename
48 True if bytes are valid printable ASCII (CR, NL, TAB, BS, 32-126)
50 printable(offset,length)
52 True if bytes are printable 8-bit chars (CR, NL, TAB, BS, 32-126, 128-254)
54 string(offset,"string")
56 True if bytes are identical to string
58 istring(offset,"string")
60 True if a case-insensitive comparison of the bytes is identical
64 True if byte is identical
68 True if 16-bit integer is identical
72 True if 32-bit integer is identical
76 True if current locale matches string
78 contains(offset,range,"string")
80 True if the range contains the string
82 String constants can be specified inside quotes ("") for strings
83 containing whitespace and angle brackets (<>) for hexadecimal
86 \fIclasses.conf(5)\fR, \fIcupsd(8)\fR, \fIcupsd.conf(5)\fR,
87 \fImime.convs(5)\fR, \fIprinters.conf(5)\fR,
89 http://localhost:631/help
91 Copyright 2007 by Apple Inc.
93 .\" End of "$Id: mime.types.man 6649 2007-07-11 21:46:42Z mike $".