# 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 ftypM4A audio/x-m4a 4 string moov video/quicktime 4 string mdat video/quicktime 8 string mp42 video/quicktime 12 string mdat video/quicktime 36 string mdat video/quicktime 0 belong 0x3026b275 video/x-ms-asf 0 string ASF\ audio/x-ms-asx 0 string \ application/x-mozilla-bookmarks 0:64 string \ application/x-netscape-bookmarks 0:64 string \ application/x-smil 0:64 string \ application/x-smil 0:64 string \