1mime.types(5) Easy Software Products mime.types(5)
2
3
4
6 mime.types - mime type description file for cups
7
9 The mime.types file defines the recognized file types.
10
11 Additional file types can be added to mime.types or (preferably) in
12 additional files in the CUPS configuration directory with the extension
13 ".types".
14
15 Each line in the mime.types file is a comment, blank, or rule line.
16 Comment lines start with the # character. Rule lines start with the
17 MIME type name and are optionally followed by a series of file recogni‐
18 tion rules that are used to automatically identify print and web files:
19
20 super/type rule [ ... ruleN]
21 The rules may be grouped using parenthesis, joined using "+" for a log‐
22 ical AND and "," or whitespace for a logical OR, and negated using "!".
23
25 Rules take two forms - a filename extension by itself and functions
26 with test values inside parenthesis. The following functions are avail‐
27 able:
28
29 match("pattern")
30 Pattern match on filename
31
32 ascii(offset,length)
33 True if bytes are valid printable ASCII (CR, NL, TAB, BS, 32-126)
34
35 printable(offset,length)
36 True if bytes are printable 8-bit chars (CR, NL, TAB, BS, 32-126,
37 128-254)
38
39 string(offset,"string")
40 True if bytes are identical to string
41
42 istring(offset,"string")
43 True if a case-insensitive comparison of the bytes is identical
44
45 char(offset,value)
46 True if byte is identical
47
48 short(offset,value)
49 True if 16-bit integer is identical
50
51 int(offset,value)
52 True if 32-bit integer is identical
53
54 locale("string")
55 True if current locale matches string
56
57 contains(offset,range,"string")
58 True if the range contains the string
59
61 String constants can be specified inside quotes ("") for strings con‐
62 taining whitespace and angle brackets (<>) for hexadecimal strings.
63
65 classes.conf(5), cupsd(8), cupsd.conf(5), mime.convs(5), print‐
66 ers.conf(5),
67 http://localhost:631/help
68
70 Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
71
72
73
7412 February 2006 Common UNIX Printing System mime.types(5)