On Tuesday 06 December 2005 01:57, Paul W. Abrahams wrote:
Firefox (like most browsers) has an option for sending a link. I want to use kmail for that purpose. After a lot of googling, mostly through this list, I came up with the setting in about:config:
network.protocol-handler.app.mailto kmail
Now when I select File / Send Link, I get an open kmail message, as I should -- but it doesn't have the link in it. I've also tried setting the value of that variable to "kmail %s" and to "kmail %u", but neither of those seems to do the trick. Which leads to two questions:
1. How can I get the link to be inserted into the message?
use "kfmclient exec %s" in Firefox's about:config network.protocol-handler.app.mailto key. Explanation: Firefox just passes the whole mailto: url to the app it launches. KMail, if you launch it with "kmail mailto:foo@bar.org?subject=hello&bcc=frobozz@gue.net", doesn't parse the URL beyond the email address. kfmclient is a launcher for almost any kind of file or URL under KDE, it uses KDE magic to figure out what to do with the URL. For mailto's, it checks the mailer to use from kcontrol->KDE components->Component chooser->Email client and launches that. For kmail, it is smart enough to parse the URL and call KMail using --subject, --cc, --bcc command line options, using all the information from the mailto link in kmail's composer. This also works with the Send link context menu item in Firefox. HTH Wil