Bug 261292 - [KMail 1.13.5 + SC 4.6rc1] Copy text from email adds all sorts of HTML tags to clipboard
Summary: [KMail 1.13.5 + SC 4.6rc1] Copy text from email adds all sorts of HTML tags t...
Status: RESOLVED DUPLICATE of bug 259468
Alias: None
Product: kmail
Classification: Applications
Component: messageviewer (show other bugs)
Version: 1.13.5
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
: 291776 (view as bug list)
Depends on:
Reported: 2010-12-26 15:34 UTC by markuss
Modified: 2012-01-17 17:01 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description markuss 2010-12-26 15:34:14 UTC
Version:           1.13.5 (using KDE 4.5.90) 
OS:                Linux

Copy text from an email, paste it into eg. KWrite:
Pasted text is not only the text itself but also lots of HTML tags.

I copied and pasted one paragraph from a recent KWin mailing list mail below.

Reproducible: Always

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<body><tr class="signWarnH"><td dir="ltr"><table cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td align="right"><a href="kmail:showSignatureDetails"></a></td></tr></tbody></table></td></tr><tr class="signWarnB"><td><a name="att3"/><div id="attachmentDiv3">
<div class="noquote"><div dir="ltr">Hello,</div><br/><div dir="ltr">let me break the Christmas silence by writing a long post about the current&nbsp;</div><div dir="ltr">state of KWin and where we are heading towards in 2011. As this also is about&nbsp;</div><div dir="ltr">Plasma I sent it to both lists. I have been thinking a lot about the last year&nbsp;</div><div dir="ltr">and the state of kwin over the holidays and here is the summary. Sorry that it&nbsp;</div><div dir="ltr">is that long.</div></div></div></td></tr></body>
Comment 1 Karol Sikora 2010-12-29 02:20:15 UTC
Where can i find sources of composer component? I would try to fix it but i`m confused searching in svn repo.
Comment 2 Karol Sikora 2010-12-29 02:21:37 UTC
Sorry, no composer. Of course window with message content.
Comment 3 Karol Sikora 2010-12-29 02:35:40 UTC
Ok, I found it. It`s void KMReaderWin::slotCopySelectedText()[slot] in kmreaderwin.cpp. We need probably create temporary QTextBrowser, insert into them selected text and fetch by toPlainText() method. It`s right way?
Comment 4 Thomas McGuire 2011-01-01 21:21:46 UTC
Works for me in the Git master version, which uses webkit instead of KHTML.
In KMail 1 (your version), it simply uses KHTML, and the bug would need to be fixed there, not in KMail.

I'm closing this bug as FIXED as it works in master.Thanks for investigating this.
Comment 5 markuss 2011-01-02 15:10:19 UTC
1.) It's a new regression that occurs with the very recently released Kontact 4.4.9, so it's definitely not fixed.

2.) If you actually know what the problem is, change the component accordingly instead of simply claiming that a very new regression is magically fixed.

3.) It doesn't happen in Konqueror nor Akrekator, so I doubt it's KHTML's fault.

4.) This bug report is filed against KMail1, not KMail2. It's not fixed in KMail1 (and KMail1 is still supported while KMail2 ist still not yet supported).

5.) If you don't want bug reports against Allan's 4.4.x releases, get KMail2 ready for release.
Comment 6 Thomas McGuire 2011-01-02 20:10:49 UTC
You're right, sorry.
Comment 7 Robert Gomulka 2011-01-12 08:54:18 UTC
Hi all,
in my case the following upgrade:
[UPGRADE] kmail 4:4.4.7-0ubuntu1~lucid1~ppa2 -> 4:4.4.8-0ubuntu0.0.1
caused exactly the same behaviour (new KMail version is 1.13.5)

For me workaround is:
1. Copy text from KMail to clipboard
2. Paste it to Openoffice Word
3. Select it in OpenOffice and copy to clipboard

Probably there's something simplier for that.
Then I have unformatted text again.
Comment 8 markuss 2011-01-13 14:59:25 UTC

*** This bug has been marked as a duplicate of bug 259468 ***
Comment 9 Jekyll Wu 2012-01-17 14:11:50 UTC
*** Bug 291776 has been marked as a duplicate of this bug. ***
Comment 10 Jekyll Wu 2012-01-17 17:01:34 UTC
*** Bug 291790 has been marked as a duplicate of this bug. ***