Bug 3004 - claws picks wrong mime type for attachments
Summary: claws picks wrong mime type for attachments
Status: RESOLVED FIXED
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.9.2
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2013-09-18 08:04 UTC by Pierre Ossman
Modified: 2013-09-29 15:37 UTC (History)
0 users

See Also:


Attachments
Probable fix (680 bytes, patch)
2013-09-18 08:14 UTC, Colin Leroy
no flags Details | Diff

Description Pierre Ossman 2013-09-18 08: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 08:14:54 UTC
Created attachment 1298 [details]
Probable fix

Hi,

Does this patch fix it ?
Comment 2 users 2013-09-29 09: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

Note You need to log in before you can comment on or make changes to this bug.