# Copyright (C) Eazel, Inc. 2000, 2001 # # MIME magic patterns as used by the Gnome VFS library # # The format of magic entries is: # # offset_start[:offset_end] pattern_type pattern [&pattern_mask] type # # and are decimal numbers (file offsets). # # is (byte | short | long | string | date | beshort | # belong | bedate | leshort | lelong | ledate). # # is an ASCII string with non-printable characters escaped # as hex or octal escape sequences, and spaces and other important # whitespace escaped with '\'. # # is a string of hex digits. The mask must be the same # length as the pattern. # # is a valid MIME type. # # Order magic patterns such that ambiguous ones (such as # application/x-ms-dos-executable) are at the end of the list and # therefore get applied last. # # Avoid rules that require a seek deep into the examined file. If you # must, locate such rules at the end of the list so that they get # applied last # # When designing new document formats, make them easily recognizable # by defining a sufficiently unique magic pattern near the document # start. A good pattern is at least four bytes long and contains one # or two non-printable characters so that text files won't be # misidentified. 0 string %PDF- application/pdf 0 string \177ELF\ \ \ \ \ \ \ \ \ \ \ \ \004 &0xffffffff000000000000000000000000ff application/x-core-file 0 string \177ELF\ \ \ \ \ \ \ \ \ \ \ \ \003 &0xffffffff000000000000000000000000ff application/x-shared-library 0 string \177ELF application/x-executable-binary # Disable zip because detecting StarOffice files correctly is more imporant in the release # than detecting the occasional zip file without an extension #0 string PK\003\004 application/zip 0 string \004%! application/postscript 0 string \000\000\001\272 video/mpeg 0 string \000\000\001\263 video/mpeg # .mmv, mpeg transport stream created by movieshaker 0 string \x47\x3f\xff\x10 video/mpeg 0 string \377\330\377 image/jpeg # The below ignores the details available (architecture, type, version) 0 string \xed\xab\xee\xdb application/x-rpm 0 string Rar! application/x-rar 0 string GIF8 image/gif 4 string moov video/quicktime 4 string mdat video/quicktime 8 string mp42 video/quicktime 12 string mdat video/quicktime 0 string MThd audio/x-midi 0 string IMPM audio/x-it 2 string -lh0- application/x-lha 2 string -lh1- application/x-lha 2 string -lz4- application/x-lha 2 string -lz5- application/x-lha 2 string -lzs- application/x-lha 2 string -lh\40- application/x-lha 2 string -lhd- application/x-lha 2 string -lh2- application/x-lha 2 string -lh3- application/x-lha 2 string -lh4- application/x-lha 2 string -lh5- application/x-lha 20 string \375\304\247\334 application/x-zoo 0 string StuffIt\ application/x-stuffit 11 string must\ be\ converted\ with\ BinHex application/mac-binhex40 102 string mBIN application/x-macbinary 4 string gtktalog\ application/x-gtktalog 0 string diff\ text/x-patch 0 string Index: text/x-patch 0 string ***\ text/x-patch 0 string Only\ in\ text/x-patch 0 string Common\ subdirectories:\ text/x-patch 0 string FONT application/x-font-vfont 0 string IIN1 image/tiff 0 string MM\x00\x2a image/tiff 0 string II\x2a\x00 image/tiff 0 string \x89PNG image/png 0 string 8BPS\ \ \000\000\000\000 &0xffffffff0000ffffffff image/x-psd 0 string #LyX text/x-lyx 0 string DCMw image/x-dcm 0 belong 0x59a66a95 image/x-sun-raster 0 belong 0x01da0000 &0xfcfeffff image/x-sgi 0 belong 0xb168de3a image/x-pcx 0 string \x28\x00\x00\x00 image/x-dib 0 string SIMPLE\ \ = image/x-fits 0 belong 0x46506978 image/x-fpx 0 belong 0x00000200 image/x-icb 0 belong 0x53445058 image/x-dpx # Desktop file support - slightly wrong, since comments can be before # the [Desktop Entry] line in the current spec - probably should fix # desktop entry spec to allow this 0:32 string [Desktop\ Entry] application/x-gnome-app-info # Theme ("Metatheme") support 0:40 string [X-GNOME-Metatheme] application/x-gnome-theme # special Nautilus link type 0:32 string \