Bug 373040 - Stop line wrapping long links
Summary: Stop line wrapping long links
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal with 60 votes (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 381403 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-11-28 16:47 UTC by William L. Thomson Jr.
Modified: 2022-06-14 17:29 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of long link being wrapped and broken (33.92 KB, image/png)
2016-12-05 16:44 UTC, William L. Thomson Jr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. 2016-11-28 16:47:49 UTC
This has bothered me for years ever since switching from Evolution. I always compose via plain text, as I did for over a decade in Evolution. Anytime I copied/pasted or entered a long link into Evolution it would NOT line wrap that link. Most everything else it would line wrap as it should.

Kmail2 always line wraps long lines which breaks the link for the recipient. This is the opposite problem of bug 78302. Which is for handling broken links. I want Kmail2 to stop breaking the links in the first place. It forces the recipient to have to copy and paste the entire link, all lines. Rather than them simply being able to click on the link.

There is no reason to line wrap a long link and break its click function for the recipient. Evolution never did this, but sadly Kmail2 has always. I hope Kmail2 can be modified to not line wrap long links.

I consider this to be a bug/issue NOT a feature request. As this breaks click link function for anyone receiving the email.
Comment 1 Nilesh Sah 2016-12-05 06:58:03 UTC
Can this bug be taken up by a newbie or does it require certain level of expertise? Would really like a bit of guidance here.
Comment 2 Laurent Montel 2016-12-05 16:39:12 UTC
Perhaps you can provide a test case.
Comment 3 William L. Thomson Jr. 2016-12-05 16:41:57 UTC
Sample long URL, in Kmail should wrap on the word "Stop", so the rest is on the 2nd line and not part of the link. If a recipient gets the email, it will be broken, only the 1st line is clickable.

https://www.google.com/search?q=kde+Stop+line+wrapping+long+links&oq=kde+Stop+line+wrapping+long+links
Comment 4 William L. Thomson Jr. 2016-12-05 16:44:05 UTC
Created attachment 102633 [details]
Screenshot of long link being wrapped and broken

You can see in this attachment the problem. I composed an email to myself with a long link. It broke the link. A person has to copy and paste the entire thing. Rather than clicking on the link.
Comment 5 William L. Thomson Jr. 2017-03-12 19:51:10 UTC
This is very frustrating... Trying to share links with others. Kmail wraps and breaks the link. Requiring copy/paste to get the link to work again.
https://beta.groups.yahoo.com/neo/groups/Firebird-Java/conversations/messages/11297

It is really amazing how Mobile stuff gets it, but other do not. In mobile anything that looks like a link and/or phone, etc is clickable and actionable. It is ridiculous that kmail messes with urls such that when they arrive. They are not seen as URL. They are not clickable. They are line wrapped and broken.

Really seems like kmail is an experiment in people who need to fulfill their time writing code. Rather than a serious email client that the developers use themselves. Do Kmail devs never send out long links?

I even tried to disable the option to line wrap at so many characters, default 78. No difference. Next email/long url, wrapped several lines and broke. This is stupid...

Just look at this garbage
https://beta.groups.yahoo.com/neo/groups/Firebird-Java/conversations/messages/11299

Every link broke... What a wonderful piece of software kmail is. I never ever had this issue with Evolution. This has bothered me for so many years I finally filed this bug. But issues with kmail are stacking up, the end is very near for me.

Seriously worse email software ever!!!
Comment 6 William L. Thomson Jr. 2017-03-12 19:52:07 UTC
Not how Bugzilla is NOT breaking the links I put here. Learn from that Kmail devs... Use the stuff you make. Put long links into emails and send to other Kmail devs as part of development. Watch they break, and then say how great Kmail is...
Comment 7 William L. Thomson Jr. 2017-03-14 03:03:19 UTC
Turning off word wrap does stop this bug then text is also not wrapped. Ideally any time a line starts with http or www, etc or anything matching a URL per regex should disable line wrapping for that line.

That way you can leave word wrapping on, but links will not be wrapped. And/or wrap links in way that they show wrapped visually, but actual text is not wrapped when sent. Either way.
Comment 8 adi 2017-08-17 17:31:27 UTC
Actually it would be even more appealing to get a little more control about the line wrapping -- just like you get with 'vim -c ยจ set tw=75"' in mutt:
* long lines (containing no spaces) won't be broken. This holds true for urls as well
* you may manually remove line breaks, just in case you want to send log lines somewhere and do not want them to break.

Anyways, the way it is now is rather nasty and unusable. Even having a vertical line somewhere around 78 characters that visually assists at manually adding line breaks would be an improvement to the current situation.
Comment 9 gszymaszek 2018-09-30 09:22:57 UTC
*** Bug 381403 has been marked as a duplicate of this bug. ***
Comment 10 kde 2021-03-02 20:25:37 UTC
Operating System: openSUSE Tumbleweed 20210223
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-1-default
OS Type: 64-bit
Graphics Platform: X11

This bug still exists and is very annoying, making the line break feature almost useless.