Bug 3004

Summary: claws picks wrong mime type for attachments
Product: Claws Mail (GTK 2) Reporter: Pierre Ossman <pierre-bugzilla>
Component: OtherAssignee: users
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 3.9.2   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Probable fix none

Description Pierre Ossman 2013-09-18 10:04:06 UTC
When I attach a file in claws and there are multiple possible mime types for it, Claws picks the wrong one (compared to other applications, and the sensible choice, so I assume there's at least a de facto ordering system in place).

As an example, Fedora has this in their mime type database:

$ grep png /usr/share/mime/globs
image/png:*.png
image/x-apple-ios-png:*.png

Everything else picks image/png, but Claws picks image/x-apple-ios-png. And that presents some problems for the recipient to look at the image without first storing it to disk.
Comment 1 Colin Leroy 2013-09-18 10:14:54 UTC
Created attachment 1298 [details]
Probable fix

Hi,

Does this patch fix it ?
Comment 2 users 2013-09-29 11:03:06 UTC
Changes related to this bug have been committed.
Please check latest Git and update the bug accordingly.
You can also get the patch from:
http://git.claws-mail.org/

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=dc475350bb9371e9e30fa2ae6adea582cdab94be
Merge: 23c6fdb de0d6d2
Author: Colin Leroy <colin@colino.net>
Date:   Sun Sep 29 11:03:04 2013 +0200

    Merge branch 'master' of file:///home/git/claws

http://git.claws-mail.org/?p=claws.git;a=commitdiff;h=de0d6d263e40307d18966c4fc46460f6bfbef5be
Author: Colin Leroy <colin@colino.net>
Date:   Sun Sep 29 11:02:56 2013 +0200

    Fix bug #3004, "claws picks wrong mime type for attachments"
    Use first match for each extension