Bug 3245

Summary: We should add one more pattern for message/rfc822
Product: shared-mime-info Reporter: Antonio Xu <antonio.xu>
Component: generalAssignee: Antonio Xu <antonio.xu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: dan
Version: unspecified   
Hardware: x86 (IA32)   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: This patch is going to add one more pattern "Return-path" for message/rfc822
this patch is going to fix mime info problem

Description Antonio Xu 2005-05-09 04:30:32 UTC
Currently, most of emails use "Return-path" as the beginning of email source.
but in gnome-vfs-mime-magic, there only have one pattern "Return-Path" against
message/rfc822. So that means, if we have a email which begin with
"Return-path", gnome-vfs couldn't return the right mime type of this email, that
will break some email related operation on gnome.
Comment 1 Antonio Xu 2005-05-09 04:31:47 UTC
Created attachment 2641 [details] [review]
This patch is going to add one more pattern "Return-path" for message/rfc822
Comment 2 Antonio Xu 2005-05-31 00:19:53 UTC
Created attachment 2802 [details] [review]
this patch is going to fix mime info problem
Comment 3 Daniel Drake 2005-08-17 05:53:00 UTC
I was about to file the same bug.

I use courier-imap for mail and it uses "Return-path:" as the first line. I
checked RFC 822 and it mentions both "Return-Path" and "Return-path" a few
times, so I agree it makes sense to add this pattern.

The patch here still applies and solves the problem. Antonio, do you have access
to commit this or is this bug assigned wrongly?
Comment 4 Bastien Nocera 2005-09-13 02:02:35 UTC
2005-05-31  Antonio Xu <antonio.xu@sun.com>

        Reviewed by: Bastien Nocera <hadess@hadess.net>

        * freedesktop.org.xml.in: add one more pattern "Return-path" for
        message/rfc822

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.