[17229] | 1 | # Copyright (C) Eazel, Inc. 2000, 2001 |
---|
| 2 | # |
---|
| 3 | # MIME magic patterns as used by the Gnome VFS library |
---|
| 4 | # |
---|
| 5 | # The format of magic entries is: |
---|
| 6 | # |
---|
| 7 | # offset_start[:offset_end] pattern_type pattern [&pattern_mask] type |
---|
| 8 | # |
---|
| 9 | # <offset_start> and <offset_end> are decimal numbers (file offsets). |
---|
| 10 | # |
---|
| 11 | # <pattern_type> is (byte | short | long | string | date | beshort | |
---|
| 12 | # belong | bedate | leshort | lelong | ledate). |
---|
| 13 | # |
---|
| 14 | # <pattern> is an ASCII string with non-printable characters escaped |
---|
| 15 | # as hex or octal escape sequences, and spaces and other important |
---|
| 16 | # whitespace escaped with '\'. |
---|
| 17 | # |
---|
| 18 | # <pattern_mask> is a string of hex digits. The mask must be the same |
---|
| 19 | # length as the pattern. |
---|
| 20 | # |
---|
| 21 | # <type> is a valid MIME type. |
---|
| 22 | # |
---|
| 23 | # Order magic patterns such that ambiguous ones (such as |
---|
| 24 | # application/x-ms-dos-executable) are at the end of the list and |
---|
| 25 | # therefore get applied last. |
---|
| 26 | # |
---|
| 27 | # Avoid rules that require a seek deep into the examined file. If you |
---|
| 28 | # must, locate such rules at the end of the list so that they get |
---|
| 29 | # applied last |
---|
| 30 | # |
---|
| 31 | # When designing new document formats, make them easily recognizable |
---|
| 32 | # by defining a sufficiently unique magic pattern near the document |
---|
| 33 | # start. A good pattern is at least four bytes long and contains one |
---|
| 34 | # or two non-printable characters so that text files won't be |
---|
| 35 | # misidentified. |
---|
| 36 | |
---|
| 37 | 0 string %PDF- application/pdf |
---|
[18259] | 38 | 0 string \177ELF\ \ \ \ \ \ \ \ \ \ \ \ \004 &0xffffffff000000000000000000000000ff application/x-core-file |
---|
| 39 | 0 string \177ELF\ \ \ \ \ \ \ \ \ \ \ \ \003 &0xffffffff000000000000000000000000ff application/x-shared-library |
---|
[17229] | 40 | 0 string \177ELF application/x-executable-binary |
---|
[18259] | 41 | |
---|
| 42 | # Disable zip because detecting StarOffice files correctly is more imporant in the release |
---|
| 43 | # than detecting the occasional zip file without an extension |
---|
| 44 | #0 string PK\003\004 application/zip |
---|
| 45 | |
---|
[17229] | 46 | 0 string \004%! application/postscript |
---|
| 47 | 0 string \000\000\001\272 video/mpeg |
---|
| 48 | 0 string \000\000\001\263 video/mpeg |
---|
[18259] | 49 | # .mmv, mpeg transport stream created by movieshaker |
---|
| 50 | 0 string \x47\x3f\xff\x10 video/mpeg |
---|
[17229] | 51 | 0 string \377\330\377 image/jpeg |
---|
| 52 | # The below ignores the details available (architecture, type, version) |
---|
| 53 | 0 string \xed\xab\xee\xdb application/x-rpm |
---|
| 54 | 0 string Rar! application/x-rar |
---|
| 55 | 0 string GIF8 image/gif |
---|
| 56 | 4 string moov video/quicktime |
---|
| 57 | 4 string mdat video/quicktime |
---|
[18259] | 58 | 8 string mp42 video/quicktime |
---|
[17229] | 59 | 12 string mdat video/quicktime |
---|
| 60 | 0 string MThd audio/x-midi |
---|
[18259] | 61 | 0 string IMPM audio/x-it |
---|
[17229] | 62 | 2 string -lh0- application/x-lha |
---|
| 63 | 2 string -lh1- application/x-lha |
---|
| 64 | 2 string -lz4- application/x-lha |
---|
| 65 | 2 string -lz5- application/x-lha |
---|
| 66 | 2 string -lzs- application/x-lha |
---|
| 67 | 2 string -lh\40- application/x-lha |
---|
| 68 | 2 string -lhd- application/x-lha |
---|
| 69 | 2 string -lh2- application/x-lha |
---|
| 70 | 2 string -lh3- application/x-lha |
---|
| 71 | 2 string -lh4- application/x-lha |
---|
| 72 | 2 string -lh5- application/x-lha |
---|
| 73 | 20 string \375\304\247\334 application/x-zoo |
---|
[18259] | 74 | 0 string StuffIt\ application/x-stuffit |
---|
| 75 | 11 string must\ be\ converted\ with\ BinHex application/mac-binhex40 |
---|
| 76 | 102 string mBIN application/x-macbinary |
---|
| 77 | 4 string gtktalog\ application/x-gtktalog |
---|
[17229] | 78 | 0 string diff\ text/x-patch |
---|
[18259] | 79 | 0 string Index: text/x-patch |
---|
[17229] | 80 | 0 string ***\ text/x-patch |
---|
| 81 | 0 string Only\ in\ text/x-patch |
---|
| 82 | 0 string Common\ subdirectories:\ text/x-patch |
---|
| 83 | 0 string FONT application/x-font-vfont |
---|
| 84 | 0 string IIN1 image/tiff |
---|
| 85 | 0 string MM\x00\x2a image/tiff |
---|
| 86 | 0 string II\x2a\x00 image/tiff |
---|
| 87 | 0 string \x89PNG image/png |
---|
| 88 | 0 string 8BPS\ \ \000\000\000\000 &0xffffffff0000ffffffff image/x-psd |
---|
| 89 | 0 string #LyX text/x-lyx |
---|
[18259] | 90 | 0 string DCMw image/x-dcm |
---|
| 91 | 0 belong 0x59a66a95 image/x-sun-raster |
---|
| 92 | 0 belong 0x01da0000 &0xfcfeffff image/x-sgi |
---|
| 93 | 0 belong 0xb168de3a image/x-pcx |
---|
| 94 | 0 string \x28\x00\x00\x00 image/x-dib |
---|
| 95 | 0 string SIMPLE\ \ = image/x-fits |
---|
| 96 | 0 belong 0x46506978 image/x-fpx |
---|
| 97 | 0 belong 0x00000200 image/x-icb |
---|
| 98 | 0 belong 0x53445058 image/x-dpx |
---|
[17229] | 99 | |
---|
| 100 | # Desktop file support - slightly wrong, since comments can be before |
---|
| 101 | # the [Desktop Entry] line in the current spec - probably should fix |
---|
| 102 | # desktop entry spec to allow this |
---|
| 103 | 0:32 string [Desktop\ Entry] application/x-gnome-app-info |
---|
| 104 | |
---|
[18790] | 105 | # Theme ("Metatheme") support |
---|
| 106 | 0:40 string [X-GNOME-Metatheme] application/x-gnome-theme |
---|
| 107 | |
---|
[17229] | 108 | # special Nautilus link type |
---|
| 109 | 0:32 string \<nautilus_object\ nautilus_link application/x-nautilus-link |
---|
| 110 | |
---|
| 111 | # special GMC link type |
---|
| 112 | 0:32 string \URL: application/x-gmc-link |
---|
| 113 | |
---|
| 114 | # xpm rule needs to go before text/x-c |
---|
| 115 | 0 string /*\ XPM\ */ image/x-xpixmap |
---|
| 116 | |
---|
| 117 | # svg rules need to go before html |
---|
[18259] | 118 | 0:256 string \<!DOCTYPE\ svg image/svg |
---|
[17229] | 119 | 0:64 string \<svg image/svg |
---|
| 120 | # php rules need to go before html |
---|
| 121 | 0:64 string \<?php application/x-php |
---|
| 122 | 0:64 string \<!DOCTYPE\ HTML text/html |
---|
| 123 | 0:64 string \<!doctype\ html text/html |
---|
| 124 | 0:64 string \<HEAD text/html |
---|
| 125 | 0:64 string \<head text/html |
---|
| 126 | 0:64 string \<TITLE text/html |
---|
| 127 | 0:64 string \<title text/html |
---|
| 128 | 0:64 string \<html text/html |
---|
| 129 | 0:64 string \<HTML text/html |
---|
| 130 | 0 string {\\rtf application/rtf |
---|
| 131 | 0 string #!/bin/sh text/x-sh |
---|
| 132 | 0 string #!/bin/bash text/x-sh |
---|
| 133 | 0 string #!/bin/csh text/x-csh |
---|
| 134 | 0 string #!/bin/ksh text/x-ksh |
---|
| 135 | 0 string #!/bin/perl text/x-perl |
---|
[18259] | 136 | 0 string #!/bin/zsh text/x-zsh |
---|
[17229] | 137 | 1:16 string /bin/sh text/x-sh |
---|
| 138 | 1:16 string /bin/bash text/x-sh |
---|
| 139 | 1:16 string /bin/csh text/x-csh |
---|
| 140 | 1:16 string /bin/ksh text/x-ksh |
---|
| 141 | 1:16 string /bin/perl text/x-perl |
---|
| 142 | 0 string BEGIN:VCARD text/x-vcard |
---|
| 143 | 0 string BEGIN:VCALENDAR text/calendar |
---|
| 144 | 8 string AVI\ video/x-msvideo |
---|
| 145 | 0 string MOVI video/x-sgi-movie |
---|
| 146 | 0 string .snd audio/basic |
---|
| 147 | 8 string AIFC audio/x-aifc |
---|
| 148 | 8 string AIFF audio/x-aiff |
---|
| 149 | 0 string .ra\375 audio/x-real-audio |
---|
| 150 | 8 string WAVE audio/x-wav |
---|
| 151 | 8 string WAV\ audio/x-wav |
---|
[18790] | 152 | 8 string CDXA video/mpeg |
---|
[18259] | 153 | 0 string RIFF audio/x-riff |
---|
[17229] | 154 | # The below is set to 'application/x-ogg' at the request of Ogg Vorbis developers |
---|
| 155 | 0 string OggS application/x-ogg |
---|
| 156 | 0 string SIT! application/x-stuffit |
---|
| 157 | 0 string \312\376\272\276 application/x-java-byte-code |
---|
| 158 | 0 string Joy! application/x-pef-executable |
---|
| 159 | 4 string \x11\xAF video/x-fli |
---|
| 160 | 4 string \x12\xAF video/x-flc |
---|
| 161 | 0 string \x31\xbe\x00\x00 application/msword |
---|
| 162 | 0 string PO^Q` application/msword |
---|
| 163 | 0:64 string gmr:Workbook application/x-gnumeric |
---|
[18259] | 164 | 0:64 string \<abiword application/x-abiword |
---|
| 165 | 0:64 string \<\!DOCTYPE\ abiword application/x-abiword |
---|
[17229] | 166 | 0 string *BEGIN\ SPREADSHEETS application/x-applix-spreadsheet |
---|
| 167 | 0 string \x00\x00\x02\x00 application/vnd.lotus-1-2-3 |
---|
| 168 | 0 string PSID audio/prs.sid |
---|
| 169 | 31 string Oleo application/x-oleo |
---|
| 170 | 0 string FFIL application/x-font-ttf |
---|
| 171 | 65 string FFIL application/x-font-ttf |
---|
| 172 | 0 string LWFN application/x-font-type1 |
---|
| 173 | 65 string LWFN application/x-font-type1 |
---|
| 174 | 0 string StartFont application/x-font-sunos-news |
---|
| 175 | 0 string \x13\x7A\x29 application/x-font-sunos-news |
---|
| 176 | 8 string \x13\x7A\x2B application/x-font-sunos-news |
---|
| 177 | 0 string %!PS-AdobeFont-1. application/x-font-type1 |
---|
| 178 | 6 string %!PS-AdobeFont-1. application/x-font-type1 |
---|
[18790] | 179 | 0 string %!FontType1-1. application/x-font-type1 |
---|
| 180 | 6 string %!FontType1-1. application/x-font-type1 |
---|
[17229] | 181 | 0 string STARTFONT\040 application/x-font-bdf |
---|
| 182 | 0 string \001fcp application/x-font-pcf |
---|
| 183 | 0 string D1.0\015 application/x-font-speedo |
---|
| 184 | 0 string \x14\x02\x59\x19 application/x-font-libgrx |
---|
| 185 | 0 string \xff\x46\x4f\x4e application/x-font-dos |
---|
| 186 | 7 string \x00\x45\x47\x41 application/x-font-dos |
---|
| 187 | 7 string \x00\x56\x49\x44 application/x-font-dos |
---|
| 188 | 0 string \<MakerScreenFont application/x-font-framemaker |
---|
| 189 | 0 string \000\001\000\000\000 application/x-font-ttf |
---|
| 190 | 1 string WPC application/x-wordperfect |
---|
| 191 | 0 string ID; text/spreadsheet |
---|
| 192 | 0 string MZ application/x-ms-dos-executable |
---|
| 193 | 0 string %! application/postscript |
---|
| 194 | 0 string BZh application/x-bzip |
---|
[18790] | 195 | 0 string \x1f\x8b application/x-gzip |
---|
[17229] | 196 | 0 string \037\235 application/x-compress |
---|
| 197 | 0 string \367\002 application/x-dvi |
---|
| 198 | 0 string \367\203 application/x-font-tex |
---|
| 199 | 0 string \367\131 application/x-font-tex |
---|
| 200 | 0 string \367\312 application/x-font-tex |
---|
| 201 | 2 string \000\022 application/x-font-tex-tfm |
---|
| 202 | 0 string \x36\x04 application/x-font-linux-psf |
---|
| 203 | 0 string FWS application/x-shockwave-flash |
---|
| 204 | 0 string BMxxxx\000\000 &0xffff00000000ffff image/bmp |
---|
| 205 | 0 string Return-Path: message/rfc822 |
---|
| 206 | 0 string Path: message/news |
---|
| 207 | 0 string Xref: message/news |
---|
| 208 | 0 string From: message/rfc822 |
---|
| 209 | 0 string Article message/news |
---|
| 210 | 0 string Received: message/rfc822 |
---|
[18259] | 211 | 0 string [playlist] audio/x-scpls |
---|
[18790] | 212 | 0 string fLaC application/x-flac |
---|
| 213 | 32769 string CD001 application/x-iso-image |
---|
| 214 | 37633 string CD001 application/x-iso-image |
---|
| 215 | 32776 string CDROM application/x-iso-image |
---|
| 216 | 0 string OTTO application/x-font-otf |
---|
[18259] | 217 | |
---|