Bug 310852

Summary: Use type-specific icons for "application/octet-stream" attachments
Product: [Applications] kmail2 Reporter: Bernd Oliver Sünderhauf <pancho.s>
Component: UIAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: jjm, montel
Priority: NOR    
Version: 4.9.3   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In: 4.10
Bug Depends on:    
Bug Blocks: 303462    

Description Bernd Oliver Sünderhauf 2012-11-29 01:20:57 UTC
Some programs (such as Lotus Notes) tend to attach files even of well-known MIME types as "application/octet-stream".
kmail obviously manages to determine the MIME type of such a file by its extension: it correctly associates the application for opening the file, and when saving to the filesystem it changes the MIME type to "application/pdf", "application/msword" or whatever.
So it would be really nice and should be no problem to display the specific icon instead of just some default "?" icon.

Reproducible: Always
Comment 1 Laurent Montel 2012-11-29 07:15:26 UTC
I need to have a mail example to test it.
Regards
Comment 2 Jonathan Marten 2012-12-02 16:23:56 UTC
Is this the same as ancient bug 35836?
Test email message attached there.
Comment 3 Laurent Montel 2012-12-07 08:03:44 UTC
Git commit 981d2c1a68abc0194d21e9feae91102c0d64465a by Montel Laurent.
Committed on 07/12/2012 at 09:03.
Pushed by mlaurent into branch 'master'.

Fix Bug 310852 - Use type-specific icons for "application/octet-stream"

attachments
FIXED-IN: 4.10

M  +5    -0    messageviewer/mimetreemodel.cpp
M  +4    -0    messageviewer/nodehelper.cpp
M  +13   -0    messageviewer/util.cpp
M  +6    -0    messageviewer/util.h
M  +5    -19   messageviewer/viewer_p.cpp

http://commits.kde.org/kdepim/981d2c1a68abc0194d21e9feae91102c0d64465a