Bug 362192 - kmail cannot show attached jpegs inline
Summary: kmail cannot show attached jpegs inline
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-24 15:55 UTC by Alex Sidorenko
Modified: 2016-07-20 04:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.2


Attachments
Email with two images attached, as created/sent by Lightroom on WIndows (142.31 KB, application/mbox)
2016-04-29 12:13 UTC, Alex Sidorenko
Details
Email with two images attached, as created/sent by Kmail itself (141.05 KB, application/mbox)
2016-04-29 12:13 UTC, Alex Sidorenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Sidorenko 2016-04-24 15:55:18 UTC
A number of jpeg files are attached to email. When I try to show them inline, it does not work and I can see the following on konsole (starting kmail from konsole):

log_messageviewer: unknown mimetype "image/jpg"
log_messageviewer: unknown mimetype "image/jpg"
...



Reproducible: Always

Steps to Reproduce:
1. Receive a message with several jpg image attached
2.  start kmail 
3. Set View->Attachements->inline

Actual Results:  
Kmail shows a list of attachments but does not show the images (broken icons or text is displayed instead)

Expected Results:  
Images should be visible

The problem occurs both on clean kubuntu-16.04 install (from ISO image) and on upgraded host (15.10->16.04). The same email are decoded properly on kubuntu-15.10 (older kmail)
Comment 1 Laurent Montel 2016-04-29 11:25:21 UTC
Please provide email example saved as mbox please
Comment 2 Alex Sidorenko 2016-04-29 12:11:28 UTC
Hello Laurent,

I have attached two files:

1. test.mbox 

This was created by LightRoom on Windows (sending photos by email). In this case Kmail is even unable to show the message structure properly. For example, if you try to do "Save Attachments", it says "Found no attachments to save"

2. test2-attached_from_Kmail.mbox

The same two images attached and sent by Kmail itself. In this case, the message structure looks OK but images are still not visible in "Inline" mode.

Regards,
Alex
Comment 3 Alex Sidorenko 2016-04-29 12:13:06 UTC
Created attachment 98684 [details]
Email with two images attached, as created/sent by Lightroom on WIndows

Email with two images attached, as created/sent by Lightroom on WIndows
Comment 4 Alex Sidorenko 2016-04-29 12:13:47 UTC
Created attachment 98685 [details]
Email with two images attached, as created/sent by Kmail itself

Email with two images attached, as created/sent by Kmail itself
Comment 5 Laurent Montel 2016-04-30 12:30:32 UTC
Git commit 0df7d3e263a919cf426c8acb3f107e9abbe5d1bf by Montel Laurent.
Committed on 30/04/2016 at 12:30.
Pushed by mlaurent into branch 'master'.

Fix mimetype image/jpg

M  +4    -1    mimetreeparser/src/utils/mimetype.cpp

http://commits.kde.org/messagelib/0df7d3e263a919cf426c8acb3f107e9abbe5d1bf
Comment 6 Laurent Montel 2016-04-30 12:31:53 UTC
I fixed warning about mimetype.
I verify test case it works fine.
I fixed it in 5.1.x I thought that it was in 5.1.3 but seems to be not here...
but in 5.2 it's fixed for sure
Comment 7 Richard 2016-07-19 22:59:28 UTC
So is there a work around for us that have 5.1.3?  Running Kubuntu 16.04 so what's the solution for me?
Comment 8 Laurent Montel 2016-07-20 04:33:30 UTC
No solution for 5.1.3
You need to upgrade your version.

Regards