Bug 199537 - Make kmail use file-magic for detecting MIME-type of attachments
Summary: Make kmail use file-magic for detecting MIME-type of attachments
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 72948 84740 85475 190798 199297 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-09 11:13 UTC by Davide Ferrari
Modified: 2012-08-19 00:11 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Ferrari 2009-07-09 11:13:39 UTC
Version:            (using KDE 4.2.90)
Installed from:    Ubuntu Packages

With attachments, KMail doesn't respect global file associations, or at least it doesn't on my machine (Kubuntu with KDE 4.3 beta upgraded from 4.2 installation) with MP3 files. In Dolphin MP3 has the correct icon and it's associated with Dragon Player. In Kmail it has a generic binary icon and no associated program by default
Comment 1 Jonathan Marten 2009-07-09 13:16:14 UTC
Can you please check the MIME type of the problem MP3 attachment, via right click - Properties.  Or, alternatively, attach a complete message which demonstrates this problem to this bug report.

It is possible that the sending email system has specified the wrong MIME type for the attachment, e.g. "application/octet-stream".  Dolphin tries harder to detect the MIME type via file magic, but KMail doesn't.
Comment 2 Davide Ferrari 2009-07-09 13:27:02 UTC
Ok, actually it's a "application/octet-stream" MIME attachment.

What should we do know? Close the bug or leave it open until KMail implements more detection magic?

Thanks for the quick answer!
Comment 3 Jonathan Marten 2009-07-09 16:26:24 UTC
What should we do? - good question.  There was a fix a long time ago (bug 35836) to get the MIME type from the file name for unknown MIME types, but that doesn't solve the problem where the specified type is application/octet-stream (i.e known but meaningless).  Obviously KMail could look at the file name in this case, but that would give the wrong information in the case where the file really is meaningless binary data and application/octet-stream is the appropriate type.

Not sure whether MIME type detection by contents magic could ever work here, especially with IMAP.

Changing bug to a wishlist, since KMail is working as intended.
Comment 4 Jaime Torres 2009-07-09 19:12:12 UTC
*** Bug 190798 has been marked as a duplicate of this bug. ***
Comment 5 Jaime Torres 2009-07-09 19:30:40 UTC
I guess bug 72948 is also a dup of this one.
Comment 6 Björn Ruberg 2009-12-18 23:47:29 UTC
*** Bug 72948 has been marked as a duplicate of this bug. ***
Comment 7 Björn Ruberg 2009-12-19 22:35:08 UTC
*** Bug 84740 has been marked as a duplicate of this bug. ***
Comment 8 Björn Ruberg 2009-12-19 22:52:42 UTC
*** Bug 85475 has been marked as a duplicate of this bug. ***
Comment 9 Björn Ruberg 2010-03-01 23:47:12 UTC
*** Bug 199297 has been marked as a duplicate of this bug. ***
Comment 10 Myriam Schweingruber 2012-08-18 08:15:29 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 11 Luigi Toscano 2012-08-19 00:11:30 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.