Bug 190798 - MIME type should be determined by file extension when attachment is application/octet-stream
Summary: MIME type should be determined by file extension when attachment is applicati...
Status: RESOLVED DUPLICATE of bug 199537
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 08:10 UTC by Bernd Wurst
Modified: 2009-07-09 19:12 UTC (History)
0 users

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 Bernd Wurst 2009-04-27 08:10:58 UTC
Version:            (using KDE 4.2.2)
Installed from:    Gentoo Packages

There are lots of e-mail-senders out there that specify application/octet-stream as MIME type for all attachments they send, regarless of the true file type.

KMail now cannot see what to do with this file and does not offer any preferred application. 

In case of PDF files, I always have to select okular manually when receiving such messages. But the file extension is .pdf, so KMail should guess the MIME type according to the file extension when no usable MIME type is specified by the sender.
Comment 1 Jaime Torres 2009-07-09 19:12:12 UTC
Kmail needs a better way to find the type of an attachment. The first step could be to use the filename (including the part after the dot), or use the same method as the file command uses.

*** This bug has been marked as a duplicate of bug 199537 ***