Version: (using KDE 4.3.0) OS: Linux Installed from: Fedora RPMs When clicking on a mailto link like this: "mailto:john@test.example?subject=x%23z&body=line%201%0aline%202" within konqueror, kmail opens with a Subject: of "x" only, and no body text. Seems the mailto link is cut at the hash symbol (%23). Calling kmailservice with the mailto link "mailto:john@test.example?subject=x%23z&body=line%201%0aline%202" (which is identical to the one above, but with HTML quoting of the ampersand removed) works fine, and yields a prefilled subject line of 'x#z' in kmail. So, I'm not sure if kmail really is to blame, or maybe it is a bug in konqueror?
Clicking on a mailto: URL is a problem within konqueror/KHTML and not in kmail (hovering over such a link does already not show the # character in the statusbar) Reassigning.
I have this problem not only in Konqueror. It happens also in Chrome and firefox now. The link, which I used: mailto:?subject=Empfohlene%20Fahrt&body=https://www3.vvs.de/mng/#!/XSLT_TRIP_REQUEST2@details?language=de&deeplink={**dateTime**:{**date**:**09.09.2018**,**dateFormat**:****,**time**:**11:46**,**timeFormat**:****,**useRealTime**:true,**isDeparture**:true,**timeCut**:[**01:00**,**04:00**],**timeCutInterval**:1},**via**:{**optionsList**:[],**optionsListItem**:{**type**:**any**,**dwellTime**:null,**enabled**:true}},**odvs**:{**orig**:**de:08118:1402**,**dest**:**de:08117:3251**}}
An escaping problem also occurs with '&' in subject or body. kmail 'mailto:team@example.com?subject=A%26B&body=D%26C' gives Subject: A Body: D&c= but it should be: Subject: A&B Body: D&C
This happens in KMail Version 5.15.2 (20.08.2)
This bug is still present in KMail version 5.16.3 (20.12.3) I tested with the command from Comment 3. https://bugs.kde.org/show_bug.cgi?id=206269#c3
Assigning back to KMail because a comment points out that the bug is there with an easy way to reproduce the problem.
Git commit 6c4fd41ee3ffc5227f805d65091775d556486aef by Laurent Montel. Committed on 15/05/2021 at 07:05. Pushed by mlaurent into branch 'release/21.04'. Fix bug 206269 "An escaping problem also occurs with '&' in subject or body." FIXED-IN: 5.17.2 M +14 -0 messagecore/autotests/stringutiltest.cpp M +1 -0 messagecore/autotests/stringutiltest.h M +10 -5 messagecore/src/utils/stringutil.cpp https://invent.kde.org/pim/messagelib/commit/6c4fd41ee3ffc5227f805d65091775d556486aef