Package: file Version: 4.20-3 Followup-For: Bug #416709
Hello, I improved my script to query the Apache mime.types database for "de facto" MIME types for non-registered types. This provided a few more fixes for x- types that are now consistent with Apache. This is the best patch I have now. Most of the rest of the warnings are spurious except for the RealMedia one, I have no idea what it should be. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages libmagic1 depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii zlib1g 1:1.2.3-13 compression library - runtime libmagic1 recommends no packages. Versions of packages file depends on: ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries -- no debconf information
application/vnd.rn-realmedia is not a registered type; use application/x-vnd.rn-realmedia instead! Did you mean one of the following for audio/x-mod: audio/clearmode image/svg+xml is not a registered type; use image/x-svg+xml instead! application/java is not a registered type; use application/x-java instead! Maybe you meant one of the following: application/javascript Apache de facto standards suggests application/x-java-applet instead of application/java Apache de facto standards suggests application/x-java-bean instead of application/java Apache de facto standards suggests application/x-java-jnlp-file instead of application/java Apache de facto standards suggests application/x-javascript instead of application/java Did you mean one of the following for audio/x-adpcm: audio/32kadpcm audio/vnd.rhetorex.32kadpcm audio/midi is not a registered type; use audio/x-midi instead! Maybe you meant one of the following: audio/rtp-midi audio/sp-midi audio/unknown is not a registered type; use audio/x-unknown instead! application/x-zip is prefixed with x-, but looks like a registered type; use application/zip instead. Did you mean one of the following for application/x-tar: application/vnd.avistar+xml Did you mean one of the following for application/x-archive: application/vnd.tao.intent-module-archive Did you mean one of the following for application/x-arc: application/marc application/vnd.tao.intent-module-archive Did you mean one of the following for application/x-frame: application/vnd.framemaker image/unknown is not a registered type; use image/x-unknown instead! Apache de facto standards suggests application/x-iso9660-image instead of application/x-iso9660 Did you mean one of the following for application/x-sc: application/ecmascript application/im-iscomposing+xml application/javascript application/postscript application/riscos application/vnd.cab-jscript application/vnd.cups-postscript application/vnd.fsc.weblaunch application/vnd.lotus-screencam application/vnd.oma-scws-config application/vnd.oma-scws-http-request application/vnd.oma-scws-http-response application/vnd.scribus application/vnd.triscape.mxs application/vnd.vividence.scriptfile application/vnd.wap.wmlscriptc application/vnd.wfa.wsc application/vnd.yamaha.hv-script Apache de facto standards suggests application/x-javascript instead of application/x-sc Apache de facto standards suggests application/x-shellscript instead of application/x-sc Did you mean one of the following for text/x-tex: text/richtext text/vnd.latex-z video/fli is not a registered type; use video/x-fli instead! video/flc is not a registered type; use video/x-flc instead! video/sgi is not a registered type; use video/x-sgi instead! Apache de facto standards suggests video/x-sgi-movie instead of video/sgi Apache de facto standards suggests application/x-quicktimeplayer instead of application/x-quicktime video/unknown is not a registered type; use video/x-unknown instead! Did you mean one of the following for application/x-object: application/vnd.businessobjects application/vnd.ms-fontobject text/xmcd is not a registered type; use text/x-xmcd instead! Did you mean one of the following for image/x-photoshop: image/vnd.adobe.photoshop application/msaccess is not a registered type; use application/x-msaccess instead! application/pgp is not a registered type; use application/x-pgp instead! Maybe you meant one of the following: application/pgp-encrypted application/pgp-keys application/pgp-signature application/ichitaro4 is not a registered type; use application/x-ichitaro4 instead! application/ichitaro5 is not a registered type; use application/x-ichitaro5 instead! application/ichitaro6 is not a registered type; use application/x-ichitaro6 instead! application/excel is not a registered type; use application/x-excel instead! Maybe you meant one of the following: application/vnd.ms-excel application/ms-tnef is not a registered type; use application/x-ms-tnef instead! Maybe you meant one of the following: application/vnd.ms-tnef Did you mean one of the following for image/x.djvu: image/vnd.djvu Did you mean one of the following for application/x-eet: application/prs.alvestrand.titrax-sheet application/vnd.fuzzysheet application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.spreadsheet-template application/vnd.street-stream image/cpi is not a registered type; use image/x-cpi instead!
mimecheck.pl
Description: Perl program
--- magic.mime 2007-03-27 13:02:38.000000000 -0500 +++ magic.new 2007-03-30 10:17:13.000000000 -0500 @@ -1,5 +1,25 @@ # Magic data for KMimeMagic (originally for file(1) command) # +# Note on adding additional MIME types: +# +# [RFC2045,RFC2046] specifies that Content Types, Content Subtypes, Character +# Sets, Access Types, and conversion values for MIME mail will be assigned and +# listed by the IANA. +# http://www.iana.org/assignments/media-types/ +# +# Any unregistered file type should be listed with a preceding x-, as in +# application/x-foo (RFC2045 5.1), or a x., as in application/x.foo (RFC4288 +# 4.3). Any non x-prefixed type should be registered with IANA and listed at +# the above address. Any other behavior is a MIME standards violation! +# +# It is preferred that when a registered MIME type exists, that +# the registered Content-Type and Subtype be used to refer to a file of +# that type, so don't use application/x-zip when application/zip is +# registered. +# +# If an active RFC suggests that a MIME registration for a new type is in +# progress, make a note of it pointing to that RFC. +# # The format is 4-5 columns: # Column #1: byte number to begin checking from, ">" indicates continuation # Column #2: type of data to match @@ -110,7 +130,7 @@ # Java 0 beshort 0xcafe ->2 beshort 0xbabe application/java +>2 beshort 0xbabe application/x-java-applet #------------------------------------------------------------------------------ # audio: file(1) magic for sound formats @@ -156,13 +176,13 @@ # Creative Labs AUDIO stuff # Standard MIDI data -0 string MThd audio/midi +0 string MThd audio/x-midi # Creative Music (CMF) data -0 string CTMF audio/unknown +0 string CTMF audio/x-unknown # SoundBlaster instrument data -0 string SBI audio/unknown +0 string SBI audio/x-unknown # Creative Labs voice data -0 string Creative\ Voice\ File audio/unknown +0 string Creative\ Voice\ File audio/x-unknown ## is this next line right? it came this way... #>19 byte 0x1A #>23 byte >0 - version %d @@ -308,7 +328,7 @@ # gzip (GNU zip, not to be confused with [Info-ZIP/PKWARE] zip archiver) 0 string \037\213 application/x-gzip -0 string PK\003\004 application/x-zip +0 string PK\003\004 application/zip # RAR archiver (Greg Roelofs, [EMAIL PROTECTED]) 0 string Rar! application/x-rar @@ -394,13 +414,16 @@ # This stuff came on a FrameMaker demo tape, most of which is # copyright, but this file is "published" as witness the following: # -0 string \<MakerFile application/x-frame -0 string \<MIFFile application/x-frame -0 string \<MakerDictionary application/x-frame -0 string \<MakerScreenFon application/x-frame -0 string \<MML application/x-frame -0 string \<Book application/x-frame -0 string \<Maker application/x-frame +# Note that this is the Framemaker Maker Interchange Format, not the +# Normal format which would be application/vnd.framemaker. +# +0 string \<MakerFile application/x-mif +0 string \<MIFFile application/x-mif +0 string \<MakerDictionary application/x-mif +0 string \<MakerScreenFon application/x-mif +0 string \<MML application/x-mif +0 string \<Book application/x-mif +0 string \<Maker application/x-mif #------------------------------------------------------------------------------ # html: file(1) magic for HTML (HyperText Markup Language) docs @@ -458,16 +481,16 @@ # # GRR 950115: this was mine ("Zip GIF"): # ZIF image (GIF+deflate alpha) -0 string GIF94z image/unknown +0 string GIF94z image/x-unknown # # GRR 950115: this is Jeremy Wohl's Free Graphics Format (better): # FGF image (GIF+deflate beta) -0 string FGF95a image/unknown +0 string FGF95a image/x-unknown # # GRR 950115: this is Thomas Boutell's Portable Bitmap Format proposal # (best; not yet implemented): # PBF image (deflate compression) -0 string PBF image/unknown +0 string PBF image/x-unknown # GIF 0 string GIF image/gif @@ -487,7 +510,7 @@ #0 string BA bitmap array # CDROM Filesystems -32769 string CD001 application/x-iso9660 +32769 string CD001 application/x-iso9660-image # Newer StuffIt archives ([EMAIL PROTECTED]) 0 string StuffIt application/x-stuffit @@ -620,13 +643,13 @@ >4 byte&0x1F 0x07 video/h264 # FLI animation format -0 leshort 0xAF11 video/fli +0 leshort 0xAF11 video/x-fli # FLC animation format -0 leshort 0xAF12 video/flc +0 leshort 0xAF12 video/x-flc # # SGI and Apple formats # Added ISO mimes -0 string MOVI video/sgi +0 string MOVI video/x-sgi-movie 4 string moov video/quicktime 4 string mdat video/quicktime 4 string wide video/quicktime @@ -634,7 +657,7 @@ 4 string free video/quicktime 4 string idsc image/x-quicktime 4 string idat image/x-quicktime -4 string pckg application/x-quicktime +4 string pckg application/x-quicktime-player 4 string/B jP image/jp2 4 string ftyp >8 string isom video/mp4 @@ -657,8 +680,8 @@ # 255 (hex FF)! DL format SUCKS BIG ROCKS. # # DL file version 1 , medium format (160x100, 4 images/screen) -0 byte 1 video/unknown -0 byte 2 video/unknown +0 byte 1 video/x-unknown +0 byte 2 video/x-unknown # # Databases # @@ -692,7 +715,7 @@ 0 string [KDE\ Desktop\ Entry] application/x-kdelnk 0 string #\ KDE\ Config\ File application/x-kdelnk # xmcd database file for kscd -0 string #\ xmcd text/xmcd +0 string #\ xmcd text/x-xmcd #------------------------------------------------------------------------------ # pkgadd: file(1) magic for SysV R4 PKG Datastreams @@ -715,7 +738,7 @@ 0 string \211HDF\r\n\032 application/x-hdf # Adobe Photoshop -0 string 8BPS image/x-photoshop +0 string 8BPS image/vnd.adobe.photoshop # Felix von Leitner <[EMAIL PROTECTED]> 0 string d8:announce application/x-bittorrent @@ -726,7 +749,7 @@ 0 belong 0x00000200 application/x-123 # MS Access database -4 string Standard\ Jet\ DB application/msaccess +4 string Standard\ Jet\ DB application/x-msaccess ## magic for XBase files #0 byte 0x02 @@ -783,22 +806,22 @@ # pgp: file(1) magic for Pretty Good Privacy # see http://lists.gnupg.org/pipermail/gnupg-devel/1999-September/016052.html #text/PGP key public ring -0 beshort 0x9900 application/pgp +0 beshort 0x9900 application/x-pgp-keyring #text/PGP key security ring -0 beshort 0x9501 application/pgp +0 beshort 0x9501 application/x-pgp-keyring #text/PGP key security ring -0 beshort 0x9500 application/pgp +0 beshort 0x9500 application/x-pgp-keyring #text/PGP encrypted data 0 beshort 0xa600 application/pgp-encrypted #text/PGP armored data ##public key block 2 string ---BEGIN\ PGP\ PUBLIC\ KEY\ BLOCK- application/pgp-keys -0 string -----BEGIN\040PGP\40MESSAGE- application/pgp +0 string -----BEGIN\040PGP\40MESSAGE- application/octet-stream 0 string -----BEGIN\040PGP\40SIGNATURE- application/pgp-signature # # GnuPG Magic: #text/GnuPG key public ring -0 beshort 0x9901 application/pgp +0 beshort 0x9901 application/x-gnupg-keyring #text/OpenPGP data 0 beshort 0x8501 application/pgp-encrypted @@ -831,14 +854,14 @@ # 0 string DOC ->43 byte 0x14 application/ichitaro4 ->144 string JDASH application/ichitaro4 +>43 byte 0x14 application/x-ichitaro4 +>144 string JDASH application/x-ichitaro4 0 string DOC ->43 byte 0x15 application/ichitaro5 +>43 byte 0x15 application/x-ichitaro5 0 string DOC ->43 byte 0x16 application/ichitaro6 +>43 byte 0x16 application/x-ichitaro6 #------------------------------------------------------------------------------ # office97: file(1) magic for MicroSoft Office files @@ -850,8 +873,8 @@ #0 string \320\317\021\340\241\261\032\341 #>48 byte 0x1B application/excel -2080 string Microsoft\ Excel\ 5.0\ Worksheet application/excel -2114 string Biff5 application/excel +2080 string Microsoft\ Excel\ 5.0\ Worksheet application/vnd.ms-excel +2114 string Biff5 application/vnd.ms-excel 0 string \224\246\056 application/msword @@ -892,10 +915,10 @@ >24 string @ application/octet-stream 0 string MZ ->30 string Copyright\ 1989-1990\ PKWARE\ Inc. application/x-zip +>30 string Copyright\ 1989-1990\ PKWARE\ Inc. application/zip 0 string MZ ->30 string PKLITE\ Copr. application/x-zip +>30 string PKLITE\ Copr. application/zip 0 string MZ >36 string LHa's\ SFX application/x-lha @@ -919,11 +942,11 @@ 0 lelong&0x8080ffff 0x0000061a application/x-arc # Microsoft Outlook's Transport Neutral Encapsulation Format (TNEF) -0 lelong 0x223e9f78 application/ms-tnef +0 lelong 0x223e9f78 application/vnd.ms-tnef # From: [EMAIL PROTECTED] # http://www.djvuzone.org/ -0 string AT&TFORM image/x.djvu +0 string AT&TFORM image/vnd.djvu # Danny Milosavljevic <[EMAIL PROTECTED]> # this are adrift (adventure game standard) game files, extension .taf @@ -956,7 +979,7 @@ 0 string/c BEGIN:VCARD text/x-vcard 0 string WordPro\0 application/vnd.lotus-wordpro 0 string WordPro\r\373 application/vnd.lotus-wordpro -0 string CPC\262 image/cpi +0 string CPC\262 image/x-cpi # 128 string DICM application/dicom