Bug 327522

Summary: Duplicate inline images in HTML message in kmail
Product: [Applications] kmail2 Reporter: Sunjae Park <darehanl>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 4.11.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.4

Description Sunjae Park 2013-11-12 18:49:52 UTC
When adding an inline image to an HTML message in KMail, I occasionally end up with duplicate images. There's just one actual image attachment, but the resulting HTML has duplicates, like so:

<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><img src="cid:1219245738@KDE" /><img src="cid:1219245738@KDE" /></p>

However, the composer only shows one, so I don't know if there was any duplicate until I actually send the message. I *think* it's triggered by pressing the spacebar immediately after attaching the image.

Reproducible: Always

Steps to Reproduce:
1. Compose an HTML email message and "Add Image"
2. After inserting image, press space a few times
3. Send email
Actual Results:  
During message compose I only see 1 inline image, but the actual send email and the saved email in the "Sent" folder shows duplicate images.

Expected Results:  
There should be ony one image per "add image" action.
Comment 1 Laurent Montel 2013-11-13 08:20:22 UTC
I confirm it
Will investigate.
It's autocorrection pb I think.
Comment 2 Laurent Montel 2013-11-13 08:39:45 UTC
Git commit 9d2ec6b7e975af36ee3e9ecf0eb63cc77100c6a3 by Montel Laurent.
Committed on 13/11/2013 at 08:39.
Pushed by mlaurent into branch 'KDE/4.11'.

Fix Bug 327522 - Duplicate inline images in HTML message in kmail

FIXED-IN: 4.11.4

M  +2    -2    messagecomposer/composer/kmeditor.cpp

http://commits.kde.org/kdepim/9d2ec6b7e975af36ee3e9ecf0eb63cc77100c6a3