Bug 260313 - Text copied to buffer from message window contains html code
Summary: Text copied to buffer from message window contains html code
Status: RESOLVED DUPLICATE of bug 259468
Alias: None
Product: kmail
Classification: Applications
Component: GUI (show other bugs)
Version: 1.13.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 20:40 UTC by Dmitry
Modified: 2011-01-13 18:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry 2010-12-16 20:40:31 UTC
Version:           1.13.5 (using KDE 4.5.4) 
OS:                Linux

When a pattern of text is copied from Kmail message window into the buffer, and then inserted into an application, html code appears instead of the plain text. It happens not only for HTML messages, but also for plain-text messages if the option "Prefer HTML to plain text" is selected in Settings.


Reproducible: Always

Steps to Reproduce:
1. Open an HTML message in Kmail.
2. Select some word or pattern of text with the mouse.
3. Ctrl-C
4. Paste the buffer in Kwrite.

Actual Results:  
HTML code is pasted in Kwrite:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<body>This is a plain text message, folks!</body>

Expected Results:  
The selected pattern of plain text should be pasted.

Actually, I don't know which KDE component (I marked GUI) causes this html-ization. 

Interesting, plain old-style X-windows middle-mouse insertion works!
I suggest to those who wish to copy text from Kmail to some other app to use middle mouse for pasting text, as a temporary workaround.

I'm pretty sure this behaviour is a regression but I cannot tell when it happened.

I don't think this bug can be classified as Major since it does not cause an immediate data loss of hardware damage. I would label it as _shameful_ :)
PIM application should work with text flawlessly. Otherwise, it is not a PIM/Office application.
Comment 1 Dmitry 2010-12-16 20:53:48 UTC
I have just discovered a previous bug report 259468 dealing with similar issue.

*** This bug has been marked as a duplicate of bug 259468 ***
Comment 2 Dmitry 2010-12-16 21:22:24 UTC
BTW, this bug manifest itself when Kmail runs on either Gnome or KDE. No difference.