https://bugs.kde.org/show_bug.cgi?id=521622
Bug ID: 521622
Summary: mailto: can't handle characters &= ( %26%3D ) ( in
subject, filename , ... )
Classification: Applications
Product: kmail2
Version First unspecified
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: commands and actions
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 193264
--> https://bugs.kde.org/attachment.cgi?id=193264&action=edit
Patch to revert obsolete bugfixes 363586 and 390939
There is a problem in processing the mailto: - string.
It can be easy fixed by removing an obsolete workaround. ( I will explain this
at the end. )
DESCRIPTION:
All mailto-parameters are effect. (( Except: body got an workaround - see Bug
#390939 )).
The value of the parameter are NOT complete processed.
I've tested this with parameter subject and attachment.
STEPS TO REPRODUCE:
1. Open a terminal
2. start kmail by command:
kmail
"mailto:[email protected][email protected]&subject=FirstPart%26SecondPart%3DThirdPart&[email protected]"
3. You see message in terminal:
org.kde.pim.kmail: unknown key "secondpart"
OBSERVED RESULT
The subject field only contains:
FirstPart
EXPECTED RESULT
The subject field should contains:
FirstPart&SecondPart=ThirdPart
Temporary FIX:
Do an additional Percent-Encoding (= replaced every % with %25 ).
A correct working example:
kmail
"mailto:[email protected][email protected]&subject=FirstPart%2526SecondPart%253DThirdPart&[email protected]"
This shows: The problem is the double done percent-encoding.
SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Version first reported in: before Version 5.3.0 ((should be))
--------------------------------
ADDITIONAL INFORMATION
ORIGIN OF THIS BUG IS IN THE FIX OF AN NOW OUTDATED BUG:
The double time Percent-Encoding was introduced in year 2016.
It was a bug-fix. But, this bug I can't reproduce anymore.
More about this old Bug #363586: " Kmail2 handles mailto: incorrectly.
urlencoded does not work "
That problem was: click on a mailto-links from inside of a Web-Browser (here
Firefox).
The fix-commit introduced an additional fromPercentEncoding():
Commit:
https://invent.kde.org/pim/kmail/-/commit/241ca9420846547bf8dafd80f854eb1e2c968e76
Commit date: 30.07.2016
Filename, old: kmail/src/kmkernel.cpp
Filename, current : src/commandlineinfo.cpp
File, current:
https://invent.kde.org/pim/kmail/-/blob/master/src/commandlineinfo.cpp?ref_type=heads#L162
STEPS TO REPRODUCE Bug #363586:
1. Open in Firefox the URL
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1032240#83
2. Click in the first line you see on link: reply
OBSERVED RESULT Bug #363586:
The Body-Textarea in Kmail show the HTML-Sourecode directly (= does not apply
it).
I was able to reproduce this bug with an old Kubuntu 16.04 Live CD.
I have removed this fix from source on my system and compiled it:
I was not able to reproduce this bug anymore. It looks like it was fixed
somewhere else.
Can you confirm that the Bug #363586 is obsolete?
When it is obsolete, we can also remove this workaround (I have also tested
this):
Bug #390939 – url with _&_ in FF =_ url is truncated in mail composer
Commit: https://commits.kde.org/kmail/ca631dc9e4c27020fe331b33bbbdb0e98a932d75
With kind regards
--
You are receiving this mail because:
You are watching all bug changes.