Bug 261936

Summary: Copying in KMail not working as expected
Product: [Unmaintained] kmail Reporter: Przemyslaw Kaminski <cgenie>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: arthur, bugs.kde.org, krombach, rockprinzess, tvl83
Priority: NOR    
Version: 1.13.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Przemyslaw Kaminski 2011-01-03 10:04:41 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

The copying function in KMail produces garbage.

Reproducible: Always

Steps to Reproduce:
Select some text in a message in KMail, press C-C to copy it. For example, I've selected word 'Slashdot' in my email. Pasting it gives:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<body>Slashdot</body>
In order to correctly paste the text 'Slashdot' I need to click the Klipper icon and select this text (it appears just below the garbage; it seems that the text is copied and then again the garbage is copied).

Actual Results:  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<body>Slashdot</body>

Expected Results:  
Slashdot
Comment 1 zless 2011-01-24 17:53:50 UTC
The same with Kmail in KDE 4.6 RC2
Comment 2 Christophe Marin 2011-02-15 12:11:05 UTC
Bleh, I'm tired today. Back to KMail 1. This cannot be reproduced with KMail2.
Comment 3 Christophe Marin 2011-02-15 12:11:25 UTC
*** Bug 266320 has been marked as a duplicate of this bug. ***
Comment 4 Tom Chiverton 2011-02-15 13:58:08 UTC
Busted in KDE 4.6 release (Kubuntu packages on Ubuntu 10.10).
Any chance of an immediate fix rather than waiting for the next point update, this is a fairly horrible bug !
Comment 5 Tom Chiverton 2011-02-21 20:01:14 UTC
Can't even copy from preview window in KMail Kontact component to new compose window without the HTML stuff appearing.

Oops. Surely the KMail developers have seen this, and a fix is already done ?
Comment 6 Tom Chiverton 2011-03-08 23:08:21 UTC
Still busted in 4.6.1 !
Comment 7 Klaus 2011-03-24 13:09:13 UTC
*** Bug 269304 has been marked as a duplicate of this bug. ***
Comment 8 Tom Chiverton 2011-03-27 18:09:32 UTC
Hmm, interesting observation: If I double click a word in Kmail to highlight it, then middle (well, left and right at the same time) click in (say) FireFox, the text comes through OK. If I TAB back to Kontact and CTRL-C and then CTRL-V in FireFox, you get HTML-wrapped-garbage again. Odd.

FWIW My Klipper settings are to prevent empty clipboard and ignore selection.
Comment 9 Thorsten 2011-04-24 21:51:27 UTC
Please eleminate this bug!
Mandriva 2010.2 KDE 4.5.4.

Regards,
TeaAge
Comment 10 Christophe Marin 2011-04-24 22:12:50 UTC
(In reply to comment #9)
> Please eleminate this bug!
> Mandriva 2010.2 KDE 4.5.4.
> 
> Regards,
> TeaAge

fixed since January.. Make sure you use kmail 1.13.6

*** This bug has been marked as a duplicate of bug 259468 ***
Comment 11 Torgny Nyblom 2011-06-05 19:57:19 UTC
*** Bug 274770 has been marked as a duplicate of this bug. ***