Bug 259468 - Copy text from email adds HTML tags to clipboard
Summary: Copy text from email adds HTML tags to clipboard
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 259201 260313 260366 261292 261936 270472 274770 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-10 20:08 UTC by BRULE Herman
Modified: 2011-06-05 19:58 UTC (History)
26 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.4.10
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2010-12-10 20:08:34 UTC
Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

Hello, I have "read as default as html message", now when I copy text (title text) it copy too html code...

Reproducible: Always

Steps to Reproduce:
open message as html
Comment 1 Dmitry 2010-12-16 20:53:48 UTC
*** Bug 260313 has been marked as a duplicate of this bug. ***
Comment 2 Harald Frießnegger 2010-12-20 10:24:00 UTC
adding myself to the cc list
Comment 3 Harald Frießnegger 2010-12-20 10:24:46 UTC
*** This bug has been confirmed by popular vote. ***
Comment 4 Thomas Tanghus 2010-12-23 12:50:54 UTC
This also happens with non-HTML mails when copying text from anywhere in the mail body; not just the header.
Comment 5 GK 2010-12-24 00:59:20 UTC
Confirmed always at Kubuntu 10.10 too. Kmail 1.13.5.
Comment 6 Leon Maurer 2010-12-24 07:23:47 UTC
I can also confirm on Kubuntu 10.10 with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<body><h2 style="margin-top: 0px;">KMail 1.13.5</h2></body>

So apparently the bug also applies to the "KMail introduction" in the Help menu... (That was an attempt to copy "KMail 1.13.5").

This bug is really awful -- any news on fixing it?
Comment 7 Lipido 2011-01-01 18:05:39 UTC
I have the same issue too in Kmail 1.13.5. I think this was since my last upgrade of KDE to the 4.5.3 version.
Comment 8 BRULE Herman 2011-01-01 20:56:33 UTC
I have this bug since kde 4.3 or less
Comment 9 Jan-Olof Eriksson 2011-01-12 09:13:56 UTC
Same issue with openSUSE 11.3 + KDE 4.5.5
Comment 10 markuss 2011-01-13 14:59:25 UTC
*** Bug 261292 has been marked as a duplicate of this bug. ***
Comment 11 Waldemar Szostak 2011-01-13 18:29:47 UTC
Confirmed here as well. I've also noticed that when you choose to edit an email, you can then copy the text from it, which is formatted and normally (in view/read-only mode) would be copied with HTML tags.
Comment 12 Ralf Jung 2011-01-15 16:00:38 UTC
Confirmed for KMail 1.13.5 on KDE 4.5.5 (Kubuntu PPA packages). This essentially renders the clipboard unusable for e-mails, a quite serious flaw.
Comment 13 Klaus Layer 2011-01-16 00:18:29 UTC
Confirmed for KDE 4.4.5 with kmail 1.13.5. Since kubuntu 10.04 released fixes with upgrade to KDE 4.4.5, all Kubuntu user are affected.

For Fedora 13 the same was reported recently:

http://www.spinics.net/linux/fedora/fedora-users/msg388782.html
Comment 14 Thomas McGuire 2011-01-16 20:26:54 UTC

*** This bug has been marked as a duplicate of bug 259201 ***
Comment 15 Christophe Marin 2011-01-17 13:12:39 UTC
SVN commit 1215050 by cgiboudeaux:

Revert r1190032 'Allow to copy/paste html text from an email'
BUG: 259468


 M  +1 -14     kmreaderwin.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1215050
Comment 16 Christophe Marin 2011-01-24 19:09:31 UTC
Git commit e1237ffb106f1aaaed45065a93bbafc638f73234 by Christophe Giboudeaux.
Pushed by tnyblom into branch '4.4'.

Revert r1190032 'Allow to copy/paste html text from an email'
BUG: 259468

M  +3    -16   kmail/kmreaderwin.cpp     

http://commits.kde.org/ee6cc38b/e1237ffb106f1aaaed45065a93bbafc638f73234
Comment 17 Malte S. Stretz 2011-01-29 16:09:30 UTC
*** Bug 259201 has been marked as a duplicate of this bug. ***
Comment 18 Malte S. Stretz 2011-01-29 16:11:02 UTC
*** Bug 260366 has been marked as a duplicate of this bug. ***
Comment 19 David Nemeskey 2011-02-10 19:08:01 UTC
(In reply to comment #16)
> Git commit e1237ffb106f1aaaed45065a93bbafc638f73234 by Christophe Giboudeaux.
> Pushed by tnyblom into branch '4.4'.
...

@Christophe: So the fix has already been committed? When will it be released?
Comment 20 Marcelo Sales 2011-03-02 19:28:52 UTC
The header of this bug report says it has been fixed in 4.4.10, but I'm running 4.5.3 and this bug is still here.
Comment 21 David Nemeskey 2011-03-02 19:58:07 UTC
(In reply to comment #20)
> The header of this bug report says it has been fixed in 4.4.10, but I'm running
> 4.5.3 and this bug is still here.

It's in 4.6.0 as well.
Comment 22 GK 2011-03-03 22:32:52 UTC
So who can tell us when this will be finally solved??? It is really uncomfortable...
Comment 23 Leon Maurer 2011-03-03 22:46:49 UTC
Well, it looks like a fix was committed (see comments 15 and 16). KDE 4.6.1 was supposed to be out two days ago but isn't out yet; it sounds like it'll be out tomorrow. Hopefully it has the fix. Does anyone know for sure?
Comment 24 Arkadiusz Miskiewicz 2011-03-03 22:53:43 UTC
4.6.1 fixes the problem for me.
Comment 25 George L. Emigh 2011-03-03 23:01:10 UTC
I'm using (Gentoo) KDE 4.6.0, Kmail and friends here are at version 4.4.10, the fix was in 4.4.10, I patched 4.4.9 on my system using the above patch, and I'm been very thankful for it.

ymmv
Comment 26 Waldemar Szostak 2011-03-04 00:37:23 UTC
It works for me in Gentoo: KMail 1.13.6, KDE 4.6.00. I'm not sure which options (where are they??) that may be relevant here, but for one I have Folder > 'Prefer HTML to Plain text' unticked.

I had this problem before (the HTML tags were included in the copied text) but now it's gone. However, I can't guarantee I haven't changed the settings ever since.
Comment 27 Leon Maurer 2011-03-05 00:26:21 UTC
I'm still seeing the bug in Kubuntu's 4.6.1 release. Does anyone else still have issues in 4.6.1? If not, I guess I should take it up with them.
Comment 28 Thomas Tanghus 2011-03-05 00:57:47 UTC
(In reply to comment #27)
> I'm still seeing the bug in Kubuntu's 4.6.1 release. Does anyone else still
> have issues in 4.6.1? If not, I guess I should take it up with them.

I'm guessing it wont get fixed until KDEPIM 4.6 is released and the devs are doing their best to make the transition as seamless as can be (thinking back on all the Akonadi trouble we've had earlier).

In the mean time use the selection clipboard (mark text, paste with MMB).

It's a PITA but I've rather have a _stable_ Akonadi based KDEPIM than having to deal with unresolved Akonadi issues.

I hope my pidgin like English makes any sense :-)
Comment 29 m.wege 2011-03-05 01:55:18 UTC
I am having the issues with KDE 4.6.1 too.
Comment 30 Leon Maurer 2011-03-05 02:06:19 UTC
Looks like Kubuntu still has Kontact 4.4.9, not 4.4.10. That could be the problem. m.wege@web.de, what version of Kontact do you have?
Comment 31 m.wege 2011-03-05 08:00:35 UTC
indeed, it is 4.4.9
Comment 32 Christophe Marin 2011-04-10 23:46:11 UTC
*** Bug 270472 has been marked as a duplicate of this bug. ***
Comment 33 Christophe Marin 2011-04-24 22:11:36 UTC
Sorry for the confusion: it's fixed in kdepim 4.4.10, not in KDE 4.4.

The easy way to check is to look at your KMail version (help / About). it must be 1.13.6.
Comment 34 Christophe Marin 2011-04-24 22:12:50 UTC
*** Bug 261936 has been marked as a duplicate of this bug. ***
Comment 35 GK 2011-04-24 23:51:50 UTC
It is still 1.13.5 in Kubuntu 10.10.
Comment 36 markuss 2011-04-25 00:47:58 UTC
Then go to Launchpad and complain to Canonical that they don't ship that update.
Comment 37 Ganton 2011-04-27 10:51:32 UTC
(In reply to comment #36)
> Then go to Launchpad and complain to Canonical that they don't ship that
> update.
Someone did it on https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/707135
Comment 38 Torgny Nyblom 2011-06-05 19:58:16 UTC
*** Bug 274770 has been marked as a duplicate of this bug. ***