Bug 285758 - "mailto:foo@bar.com" opens KMail's composer, but leaves the recipient blank
Summary: "mailto:foo@bar.com" opens KMail's composer, but leaves the recipient blank
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-04 15:35 UTC by Elias Probst
Modified: 2012-10-15 15:04 UTC (History)
7 users (show)

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 Elias Probst 2011-11-04 15:35:40 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

When typing "mailto:foo@bar.com" in krunner, it worked just fine in the past.
It opened KMail's composer and "foo@bar.com" was inserted as recipient.

Since updating to 4.7.3 the recipient is blank.

I'm not sure whether this is a krunner or KMail bug, but as "kmail --composer -- mailto:foo@bar.com" does still work, I assume it is a krunner bug.
Please re-assign if necessary.

Reproducible: Always

Steps to Reproduce:
1. Open krunner
2. Type mailto:foo@bar.com
3. Press return

Actual Results:  
KMail's composer is opened, but the recipient is blank.

Expected Results:  
I'd expect the recipient in KMail's composer to be foo@bar.com
Comment 1 Andreas Pietzowski 2011-11-15 20:24:01 UTC
*** Bug 286722 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Pietzowski 2011-11-15 20:25:43 UTC
It also happens when clicking on mailto-links in Konqueror: No email present in composer window.

I can reproduce it with current 4.7.3 here on two different Kubuntu 11.10 machines.
Comment 3 Max Lin 2011-11-29 04:47:19 UTC
Confirmed this also happens on openSUSE 12.1(4.7.2) and with KR47(4.7.3) repo.

I can reproduce it after I clicked mailto-links in firefox or Konqueror, the "To" field is empty in composer window.
Comment 4 Jekyll Wu 2011-12-09 11:22:35 UTC
Works for me when using KDE SC 4.8 beta2. It also works after changing the default mail client to thunderbird.
Comment 5 Florian Baumgärtner 2011-12-14 12:47:18 UTC
Confirmed, even after updating to kde 4.7.4. I'm using kubuntu 11.10 x64. Clicking  mailto-links in firefox 8.0 doesn't work either.

After setting thunderbird as default mail client I even had to uninstall thunderbird in order to get back kmail as standard client (changes in the settings-menu had no effect). mailto works indeed with thunderbird as default client.

executing
/usr/lib/kde4/libexec/kmailservice  mailto:foo@ba.r
in a console also works with kmail flawlessly.
Comment 6 Florian Baumgärtner 2011-12-14 13:10:48 UTC
Setting the mailto-application in firefox manually to /usr/bin/kmail works now with kde 4.7.4.
Comment 7 Elias Probst 2011-12-14 13:52:44 UTC
I'm using KDE SC 4.8 beta2 (4.7.90) here and the problem does still exist.
It also worked in several cases some days ago (still using 4.7.3), but I have no idea so far, what conditions have caused this.
Comment 8 Y 2011-12-27 13:30:24 UTC
This affects Kubuntu (4.7.4) too, and indeed setting Firefox manually to /usr/bin/kmail makes mailto: links work.  It is a shame that such a small thing that probably would take five minutes to fix to somebody familiar with the code has not been fixed in the upgrade from 4.7.3 to 4.7.4 of the Kubuntu PPA.
Comment 9 Andreas Pietzowski 2012-01-26 21:29:59 UTC
This bug is still present in KDE 4.8 - hey developers, do you never klick on email addresses on a website? It doesn't work with kmail2. It should really be a basic feature of a desktop in 2012...
Comment 10 Christopher Yeleighton 2012-01-28 10:47:17 UTC
This is critical for Firefox users trying to send preset mail messages by following hyperlinks.  Firefox does not copy the whole mailto URL, only the e-mail address, so there is no easy way to fill the composer with the data requested.  (And even if it did, it is still rather difficult to decode an URL, especially in presence of percent-coding and UTF-8).
Comment 11 Christopher Yeleighton 2012-01-28 13:15:03 UTC
Workaround:

Edit /usr/share/applications/kde4/KMail2.desktop
Let Exec=kmail -caption '%c' %u
Comment 13 Maarten De Meyer 2012-10-15 15:04:30 UTC
(In reply to comment #12)
> <URL:
> https://projects.kde.org/projects/kde/kdepim/repository/revisions/
> f6eb401b4c65bd5e0ce49a4d4dd2b44a7634933c >

Recipient is no longer blank when clicking a mailto link.