Re: Mime Bug ?
- From: Albrecht Dreß <albrecht dress arcormail de>
- To: Pawel Salek <pawsa TheoChem kth se>
- Cc: Gaelyne Gasson <gaelyne videocam net au>, balsa-list gnome org
- Subject: Re: Mime Bug ?
- Date: Fri, 15 Jun 2001 15:56:38 +0200
Am 15.06.2001 09:12:57 schrieb(en) Pawel Salek:
> On 2001-06-15 09:02 Gaelyne Gasson wrote:
> > With the same Mime settings in Gnome and in /etc/mime.types, using
/etc/mime.types comes from Apache, not from Gnome... the latter one uses
/etc/mime-magic.dat, which seems to be derived from file's database
/usr/share/magic.
> > Balsa v1.1.5 when I send a PDF file, it gets set as
> > "x-unknown/(null)". Using Balsa v1.1.4
> > sending a PDF file, it's correctly set as "application/pdf".
Sorry, this was an "improvement" I indroduced some time ago... the idea was to
get a better guess for the mime type, which does *not* depend upon looking at
a file's extension, but at it's contents (like `file' does). But...
> This is really bug in libgnome, still waiting to get fixed. It is filed
> at bugzilla:
> http://bugzilla.gnome.org/show_bug.cgi?id=54690
> http://bugzilla.gnome.org/show_bug.cgi?id=55461 (this has attached a
> test program to detect, if your gnome-mime module is broken).
Unfortunately, this has not been fixed in gnome 1.4/Ximian, at least with the
RPM's for LinuxPPC. Although it is not really likely that you ever attach
something which is a "370 XA sysV pure executable", this file is ~40% broken.
> There is a workaround for this in CVS that tries to detect invalid mime
> type and fall back to gnome_mime_type_or_default() when needed.
Wow, that's good!!!
As an alternative (or additionally) you could do the following:
* edit the file /etc/mime-magic, find the offending line, and change the last
field to a valid entry (like "application/pdf")
* run gnome-gen-mimedb, which re-creates /etc/mime-magic.dat
Not really good, but it solved the PDF problem for me.
Hth, Albrecht.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Albrecht Dreß - Monschauer Straße 22 - D-53121 Bonn (Germany)
Phone (+49) 228 6199571 - E-Mail albrecht.dress@arcormail.de
_________________________________________________________________________
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]