Bug 15810

Summary: Some Thunderbird and Evolution saved emails not properly recognized
Product: shared-mime-info Reporter: Milan Bouchet-Valat <nalimilan>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: message-rfc822 from TB, correct
text-plain from TB sentbox, not correct
application-mbox from Evo, maybe not correct

Description Milan Bouchet-Valat 2008-05-03 06:48:39 UTC
1) When you save emails from Thunderbird's 'sentbox', they're not recognized as emails but as text/plain. But messages saved in Thunderbird from any other folder than 'sent' are seen as message/rfc822, which is IMHO the correct MIME type.

Is that a Thunderbird bug or a too strict pattern in fd.o.xml?

2) Evolution saved messages always appear as application/mbox.

Regarding the message saved from 'sentbox' in TB and an Evo message, the difference is apparently that Evolution adds a 'From' and date line at the top of the file, and it appears as application/mbox. 

Same question: is it normal that the Evo messages are detected as mailboxes and not messages? To me finally only the TB messages not from 'sentbox' look correct, or properly detected.

Thanks



See attached files for complete reference (tags from Evolution are here because I read them first with Evo, not because I saved them with it).
Here's the structure of the headers:
* message-rfc822 file from TB:
Received:
Date:
From:
User-Agent:
MIME-Version: 1.0
To:
Subject:
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

* application/mbox file from Evo:
From user1@server.net Fri Apr 25 22:12:15 2008
Subject: 
From: 
To: 
Cc: 
In-Reply-To: 
References: 
Content-Type: text/plain; charset=utf-8
Message-Id: 
Mime-Version: 1.0
X-Mailer: Evolution 2.22.1 
Date: Fri, 25 Apr 2008 22:12:15 +0200
X-Evolution-Format: text/plain
Content-Transfer-Encoding: 8bit

* text/plain file from TB:
Subject: 
From: 
To: 
Cc: 
In-Reply-To: 
References: 
Content-Type: text/plain; charset=utf-8
Message-Id:
Mime-Version: 1.0
X-Mailer: Evolution 2.22.1 
Date: Fri, 25 Apr 2008 22:12:15 +0200
X-Evolution-Format: text/plain
Content-Transfer-Encoding: quoted-printable
Comment 1 Milan Bouchet-Valat 2008-05-03 06:49:56 UTC
Created attachment 16325 [details]
message-rfc822 from TB, correct
Comment 2 Milan Bouchet-Valat 2008-05-03 06:50:34 UTC
Created attachment 16326 [details]
text-plain from TB sentbox, not correct
Comment 3 Milan Bouchet-Valat 2008-05-03 06:51:08 UTC
Created attachment 16327 [details]
application-mbox from Evo, maybe not correct
Comment 4 Bastien Nocera 2008-06-11 09:01:51 UTC
Mbox files start with:
"From "
Eg. your evolution message:
From user1@server.net Fri Apr 25 22:12:15 2008

The message from the sentbox not matching is fixed in CVS.

* freedesktop.org.xml.in: Add "Subject: " as a match
for message/rfc822 mime-types
* tests/evo.msg: Remove, it was unused
* tests/list:
* tests/evolution.eml:
* tests/tb-from-sentbox.eml:
* tests/tb-saved.eml: Add some message test cases

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.