Bug 409645

Summary: kmail prepends file:///%09 in front of copied links preceded by whitespace
Product: [Applications] kmail2 Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version: 5.10.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Erik Quaeghebeur 2019-07-09 10:20:10 UTC
SUMMARY
When in an html email a link in a href field is preceded by whitespace (tab, perhaps other), then the copied link is preceded by file:///%09. This issue may be restricted to quoted-printable encoded messages, where a tab is =09.

Example (QP):

<a href=3D"=09https://some.example.net/xyz/pu=
blic/apple/reservations?unid=3De6ca8cc008bd480eb216f94aba4f95aa=09" style=
=3D"color: rgb(0, 85, 170); text-decoration: none;"><span style=3D"text-ali=
gn: right; color: rgb(255, 255, 255); font-size: 18px; text-decoration: non=
e;">Option A1234 5678</span> </a>

Result after copying link using the right-click menu:

file:///%09https://some.example.net/xyz/public/apple/reservations?unid=e6ca8cc008bd480eb216f94aba4f95aa

This may be an error on the part of the html-producers, but it would be nice if kmail were robust against such issues.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.3