Bug 465601 - mailto URL does not allow a body with line breaks
Summary: mailto URL does not allow a body with line breaks
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (other bugs)
Version First Reported In: 5.22.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-11 22:44 UTC by Pony Hütchen
Modified: 2023-02-11 22:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pony Hütchen 2023-02-11 22:44:59 UTC
SUMMARY
***
I expected that clicking on a mailto-link like the following inside kmails message viewer will open a message composer with a two lines message:
mailto:test@test.com?subject=test&body=line1%0D%0Aline2
However all the newlines are replaced by spaces.
***


STEPS TO REPRODUCE
1. Create an email that contains the above mailto-link. The link can be as text or within <a href=></a> in an html mail. 
2. Open the mail with kmails message viewer.
3. Click on the link.

OBSERVED RESULT
A composer opens with the text: "line1 line2"

EXPECTED RESULT
A composer should open with the text: "line1
line2"

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7

ADDITIONAL INFORMATION
Running
kmail "mailto:test@test.com?subject=test&body=line1%0D%0Aline2"
shows the expected behaviour, as well as clicking a mailto-link inside a browser.