After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523271 - MIME types should not be case sensitive
MIME types should not be case sensitive
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.24.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: Matthew Barnes
Evolution QA team
: 422871 446146 572304 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-18 23:38 UTC by j.lange
Modified: 2012-02-13 14:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Proposed patch (593 bytes, patch)
2008-03-19 01:59 UTC, Matthew Barnes
committed Details | Review
sample email message in mbox format (10.34 KB, application/octet-stream)
2009-03-30 18:57 UTC, j.lange
  Details

Description j.lange 2008-03-18 23:38:33 UTC
Please describe the problem:
Evolution appears to treat MIME types as case sensitive even though the MIME specification states that they are not. Nautilus behaves correctly which is why doing file associations in Nautilus does not work in Evolution in many cases.

Specifically the open source project Asterisk attaches audio files of type .WAV with a mime type of audio/x-WAV which Evolution refuses to open.

Steps to reproduce:
1. Create an email with an attachment that has an upper case mime type.
2. Ensure that mime type is working in nautilus
3. Try and open it in Evolution.


Actual results:
You will only get the "Save As" option, no option to open it with an application.

Expected results:
You should have the same options as in Nautiuls

Does this happen every time?
yes

Other information:
Comment 1 Matthew Barnes 2008-03-19 01:59:31 UTC
Created attachment 107585 [details] [review]
Proposed patch

Evolution uses gnome-vfs to look up applications for a MIME types, and I guess gnome-vfs expects all MIME types to be lowercase.
Comment 2 Srinivasa Ragavan 2008-03-27 08:41:30 UTC
Commit to stable/trunk.
Comment 3 Matthew Barnes 2008-03-27 17:25:10 UTC
Committed to trunk (revision 35276) and gnome-2-22 (revision 35277).
Comment 4 André Klapper 2009-02-18 21:54:42 UTC
*** Bug 572304 has been marked as a duplicate of this bug. ***
Comment 5 j.lange 2009-02-18 22:12:09 UTC
The point of my second bug report, 572304 is that the problem, or something similar still exists as of 2.24.
Comment 6 Matthew Barnes 2009-03-27 21:57:14 UTC
*** Bug 422871 has been marked as a duplicate of this bug. ***
Comment 7 j.lange 2009-03-30 14:25:26 UTC
Shouldn't this bug be re-opened?
Comment 8 Matthew Barnes 2009-03-30 16:37:12 UTC
Reopening, but please attach the FAX.TIF or some equivalent file for testing.
Comment 9 j.lange 2009-03-30 17:05:12 UTC
I think the full message source is more useful. I hope this isn't too long. In case this isn't clear from the message source, faxes come in to a receptionist who then forwards them to me.

And I'm now running Evolution Version 2.24.1.1 so I have changed the status of the bug to reflect that.

------------
Return-Path: <c.reina@xxxx.xx>
X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on 
 venus.xxxx.xx
X-Spam-Level: 
X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO 
 autolearn=disabled version=3.1.5
X-Original-To: john.lange@xxxx.xx
Delivered-To: wangster@xxxx.xx
Received: from mail.xxxx.xx (unknown [192.168.110.200]) by
 venus.xxxx.xx (Postfix) with ESMTP id C293E2280004 for
 <john.lange@xxxx.xx>; Mon, 23 Feb 2009 08:55:22 -0600 (CST)
Received: (qmail 16835 invoked by uid 110); 23 Feb 2009 09:37:52 -0600
Delivered-To: 4-john@johnlange.ca
Received: (qmail 16830 invoked from network); 23 Feb 2009 09:37:52 -0600
Received: from gateway8.xxxx.xx (xxx.xxx.xxx.xxx) by lh02.xxxx.xx with
 (DHE-RSA-AES256-SHA encrypted) SMTP; 23 Feb 2009 09:37:52 -0600
Received: from gateway8.xxxx.xx (localhost.localdomain [127.0.0.1]) by
 gateway8.xxxx.xx (8.13.1/8.13.1) with ESMTP id n1NEtKAf023726 for
 <john@johnlange.ca>; Mon, 23 Feb 2009 09:55:20 -0500
Received: from mail.xxxx.xx (host-253.xxxx.xx [xxx.xxx.xxx.xxx]) by
 gateway8.xxxx.xx (gateway8.xxxx.xx [10.20.20.98]) with ESMTP id
 l1M9yK1014731215W1 ret-id none; Mon, 23 Feb 2009 09:55:20 -0500
Received: from srv-mx1.xxxx.xx ([192.168.5.31]) by mail.xxxx.xx with
 Microsoft SMTPSVC(6.0.3790.3959); Mon, 23 Feb 2009 08:55:47 -0600
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C995C6.BA482BC8"
Subject: fax
Date: Mon, 23 Feb 2009 08:54:48 -0600
Message-ID: <794748C216E629439AA6C329AB4985BAE2A1A3@SRV-MX01.xxxx.xx>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: fax
Thread-Index: AcmTtOFurGvP5TcWS+iGSPNgOtLIiQCEcFrg
From: "Carolina Reina" <c.reina@xxxx.xx>
To: "John Lange" <j.lange@xxxx.xx>
X-OriginalArrivalTime: 23 Feb 2009 14:55:47.0093 (UTC)
 FILETIME=[CF4F8C50:01C995C6]
X-smtpf-Report: client=relay,passed_grey_list,ipv6; mail=; rcpt=
Received-SPF: None; receiver=gateway8.xxxx.xx;
 client-ip=64.201.170.253; helo=<mail.xxxx.xx>
Received-SPF: None; receiver=gateway8.xxxx.xx;
 client-ip=64.201.170.253; envelope-from=<c.reina@xxxx.xx>
X-xxxx-Info: Please find more info at http://www.xxxx.xx
X-xxxx-ID: n1NEtKAf023726
X-xxxx: No virus or threat found
X-xxxx-Enveloppe-From: c.reina@xxxx.xx
X-Evolution-Source: imap://wangster@xxxx.xx/

This is a multi-part message in MIME format.

------_=_NextPart_001_01C995C6.BA482BC8
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



Carolina Reina
Receptionist / Administration
xxxxx
PH: 204-xxx-xxxx
Fax:204-xxx-xxxx
c.reina@xxxx.xx
=20

-----Original Message-----
From: faxes@xxxx.xx [mailto:faxes@xxxx.xx]=20
Sent: Friday, February 20, 2009 5:42 PM
To: FAXES
Subject: Fax server SRV-BK02 received a new fax from unknown sender.

Sender: unknown sender

Caller ID:=20
Recipient name: EPIC4532400
Pages: 1
Transmission start time: 5:41:10 PM
Transmission duration: 0:01:14
Device name: MultiTech MT5600ZDX Plug & Play

--
=20
This message has been verified by xxxx (http://www.xxxx.xx) eMail =
security service.=20
http://www.xxxx.xx


------_=_NextPart_001_01C995C6.BA482BC8
Content-Type: image/tif; name="FAX.TIF"
Content-Transfer-Encoding: base64
Content-Description: FAX.TIF
Content-Disposition: attachment; filename="FAX.TIF"

SUkqAIATAAD/////////f1phFnsOSnziE58xcdhKsyH6bPFFF1uM6WKZPfGJ
iwHaIGnKmD2diYs4QhxYYZv4xGOILnY8sZSmCtAGG7qIT3z6vImLN0+IiIg+
oTgZJznHOU4FPZRznHKKoExAzkxBr/f9X/+/X1/v+/X/f///X//9X+/X+///
ev/XO01zPNH1aQcViYlPFzmmEAsIB+Ej7MmnHM4Gp8N5EDY8oj/VIhdDdDFE
F4VYJhfHxM0RhTgQHoQH4UF4EPbkUz75dHA6nAdlwBCiVZZV//v+Cx0R3cvR
svx//3eVh2UznMYpXKYcBNHvzwucL5wb4pw752b+v7zL9jkuiOHcQfQhFjxg
5iDOuevPF1bMXI7gnH1xN1qIaJX9+xPXE9cPgf4EPuf8QPRfvLgVDSpEu9Dr
/Z+46vpfIOKv9f/j44//J6773+v/fwjqf/wfAj3+H/7////jdfjxH8ff/v//
/78fAv3//3/97//fIv5hfQh0/whB9vdB9B////+/IMMh+h+iD3H//xCoHi4I
Aj1e//314ZNwTRxHfdRf9f3//5shhv44/GNCDp8Q4v/98KPi+vp71G94EzL/
Tegh+g+BDP8P3a9/fV//mYOI/79+3/7f/y8IFP6v0w4irpdg/w/7vEH5wpeX
hf/Nm7sgCObe8IQf1hMTl/8Y4d/5wht0CPGr/++HQP2//f/x9+3r/R/ehyFN
XNv/5Ef9D+MR9v/2/w3HG///v8IYHhq3+/u///+///9b/////9f3G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JAnGH6P9/3lzBF8il93/p9f//6///9nOkUMMb/zFsQfHH/yFo
mCMn///tIwZRDvn++9L///X//36Uev/z0razEgJ9zkOg/4hIsA3//7DPeQn2
/v1rjffjd5g+cTF0/1/vh0D/G1W3EepmQBLcD6ES3BHRh2VUgjc07B7/3lvr
+r+ul/Vv/VubhKusQrRICBERMSIiIiIiIiIiIiL+////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
////////////////////////////////////////////AAAAAIAAAAAAEwD+
AAQAAQAAAAIAAAAAAQQAAQAAAMAGAAABAQQAAQAAAC4IAAACAQMAAQAAAAEA
AAADAQMAAQAAAAQAAAAGAQMAAQAAAAAAAAAKAQMAAQAAAAIAAAARAQQAAQAA
AAgAAAAVAQMAAQAAAAEAAAAWAQQAAQAAAC4IAAAXAQQAAQAAAHQTAAAaAQUA
AQAAAG4UAAAbAQUAAQAAAHYUAAAkAQQAAQAAAAUAAAAoAQMAAQAAAAIAAAAp
AQMAAgAAAAAAAAAxAQIAIAAAAH4UAABHAQMAAQAAAAAAAABIAQMAAQAAAAAA
AAAAAAAAU2ZheMwAAAABAAAAxAAAAAEAAABXaW5kb3dzIE5UIEZheCBTZXJ2
ZXIAICAgICAgICAgAA==

------_=_NextPart_001_01C995C6.BA482BC8--
Comment 10 Matthew Barnes 2009-03-30 18:41:52 UTC
Thanks, the full message is fine.  Still though, can you please save the message as an mbox file and attach it here, rather than posting the raw message inline.  Bugzilla has a tendency to mutilate things like line endings, wrapping, etc. in comments.
Comment 11 j.lange 2009-03-30 18:57:50 UTC
Created attachment 131719 [details]
sample email message in mbox format
Comment 12 John Lange 2009-04-09 20:35:43 UTC
This bug status should be updated to reflect that the requested information has been supplied.
Comment 13 Matthew Barnes 2009-04-09 20:46:03 UTC
Works fine with Evolution 2.26.0.  I get a number of "Open With" options for viewing the image/tif attachment.  Reclosing.
Comment 14 André Klapper 2012-02-13 14:17:29 UTC
*** Bug 446146 has been marked as a duplicate of this bug. ***