GNOME Bugzilla – Bug 54690
Bad MIME types in /etc/mime-magic*
Last modified: 2004-12-22 21:47:04 UTC
The files /etc/mime-magic* contain *lots* of bad entries which break the usage of gnome_mime_type_of_file() and friends. E.g. the entry 0 string %PDF- PDF document should read (NOT a valid MIME type------^^^^^^^^^^^^) 0 string %PDF- application/pdf We tried to use gnome_mime_type_or_default_of_file() in Balsa to determine the type of attachments, resulting in "application/(null)" for pdf... Albrecht.
Is this still the case?
Please respond. Has this been fixed in a later release or maybe 2.0.x?
Sorry, I still have the old Gnome installation on my LinuxPPC 2000 box... I checked with SuSE 7.2 on an Intel machine: * gnome-libs-1.2.13-45.i386.rpm (vanilla 7.2) still contains a few bad entries, but mostly for some binary stuff which is not likely to be attached to mails. The "critical" ones (like PDF) seem to be fixed; * the file gnome-vfs-mime-magic from gnome-mime-data-2.0.0-16.i386.rpm (SuSE 7.2 Gnome 2 upgrade) looks clean.
Ok. Thanks for the feedback.
I'll ponder just grabbing the mime file from file(1) for the next release.
*** This bug has been marked as a duplicate of 55461 ***