Bug 15810 - Some Thunderbird and Evolution saved emails not properly recognized
Summary: Some Thunderbird and Evolution saved emails not properly recognized
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-03 06:48 UTC by Milan Bouchet-Valat
Modified: 2008-06-11 09:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
message-rfc822 from TB, correct (641 bytes, message/rfc822)
2008-05-03 06:49 UTC, Milan Bouchet-Valat
Details
text-plain from TB sentbox, not correct (609 bytes, message/rfc822)
2008-05-03 06:50 UTC, Milan Bouchet-Valat
Details
application-mbox from Evo, maybe not correct (560 bytes, message/rfc822)
2008-05-03 06:51 UTC, Milan Bouchet-Valat
Details

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.