Bug 190798

Summary: MIME type should be determined by file extension when attachment is application/octet-stream
Product: [Applications] kmail Reporter: Bernd Wurst <bugzilla-kde>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Unspecified   
Latest Commit: Version Fixed In:

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 ***