Bug 327677

Summary: mailto should open mail application
Product: [Plasma] krunner Reporter: Pablo <pablerkas>
Component: webshortcutsAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander.lohnau, kde
Priority: NOR    
Version: 4.11.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Pablo 2013-11-16 08:57:36 UTC
When executing mailto:whoever@wherever.com with krunner one would expect the mail application to open with a new message edition window with that address. Instead it opens http://whoever@wherever.com in the browser.

Reproducible: Always

Steps to Reproduce:
1. Open krunner.
2. Execute mailto:whoever@wherever.com
Actual Results:  
http://whoever@wherever.com is opened in the web browser

Expected Results:  
Mail application opens with a new message edition window with that address.
Comment 1 Kai Uwe Broulik 2016-03-02 13:58:35 UTC
There is actually code that checks for exactly that but for some reason between KRunner processing everything and the Location Runner getting the context, a http:// is prepended to the URL and so its check for if (url.scheme() == "mailto") fails
Comment 2 Kai Uwe Broulik 2016-03-02 14:04:36 UTC
Moreover, QUrl::fromUserInput treats "mailto:foo@bar.baz" as invalid email address, it requires mailto://foo@bar.baz; even then KProtocolInfo::isKnownProtocol("mailto") returns false, so there's a lot broken here.
Comment 3 Alexander Lohnau 2020-07-11 15:33:42 UTC
Right now it does not work at all.

*** This bug has been marked as a duplicate of bug 416257 ***