Bug 151981

Summary: smart copy on wrapped, single line select
Product: [Unmaintained] kmail Reporter: Maciej Pilichowski <bluedzins>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: bjoern, luigi.toscano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=271000
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Maciej Pilichowski 2007-11-07 11:43:32 UTC
Version:            (using KDE KDE 3.5.8)
Installed from:    SuSE RPMs

Consider the message:

> > is "hello world" prepared
> > for release?
> yes it is.

Now, I select and copy this part:

> > is "hello world" |prepared
> > for| release?
> yes it is.

I will get:
prepared > > for

It would be great if KMail could recognize quotation marks and remove then on the fly -- in wrapped, single line select (not when you selecting multiple lines).
Comment 1 Björn Ruberg 2010-01-13 02:00:44 UTC
Yeah
Comment 2 Torgny Nyblom 2010-01-13 09:44:45 UTC
Except that in your example you select two lines, unless I read your message wrong.

Anyway the issue would be how to recognize what are quotation marks and what are quotation characters that are part of the message. As I see it the only way to be sure would be to make sure that the quotation marks are inside a <span class="quotation"></span> construct of some sort, but this will enlarge the message and introduce one more source of potential parsing errors.

Is it worth the risk?
Comment 3 Maciej Pilichowski 2010-01-13 18:58:31 UTC
Single line -- well, it was single line before KMail wrapped it. 

About the "risk". Computers are made for doing automatic tasks. When I see task which is essentially deleting characters one by one, over and over, it is an automated task. So it should be done by computer, not by human -- we (humans) should spent time on higher level issues.

And about removing quotation marks -- I am not saying it is trivial, but it is not rocket science either.

First draft could be -- take the non-alphanumeric common prefix of line of begin of selection and each other. Remove the prefix in copied content. Un-wrap lines.

In next iteration of the algorithm it could be enhanced to handle multiple lines.
Comment 4 Myriam Schweingruber 2012-08-18 08:17:26 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 5 Luigi Toscano 2012-08-19 00:24:25 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.