Firefox: sending a link via kmail
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? 2. In general, what are the various % variable for, and where are they described? Paul
On Monday 05 December 2005 4:57 pm, 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?
Try kmail %t -subject %s -body %b
2. In general, what are the various % variable for, and where are they described?
Not sure, but in opera, there is a tooltip that shows the various 'options', %t=to address, %s = subject, %b = body, perhaps the same will work for FF Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.9-default x86_64 SuSE Linux 9.3 (x86-64)
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
On Friday 16 December 2005 8:35 am, Will Stephenson wrote:
On Tuesday 06 December 2005 01:57, Paul W. Abrahams wrote:
Firefox (like most browsers) has an option for sending a link. 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.
All that makes perfect sense -- but it didn't work for me, even after restarting Firefox. I observed that the command line kfmclient exec mailto:?subject=hello creates an email message (under kmail) with subject "hello", but setting that very line as the value of network.protocol-handler.app.mailto just creates an empty message. That leads me to think that Firefox accepts only a single identifier as the value of network.protocol-handler.app.mailto and passes the mailto: url to that program. Anything else on the key line is ignored. Paul Paul
On Friday 16 December 2005 8:35 am, Will Stephenson wrote:
use "kfmclient exec %s" in Firefox's about:config network.protocol-handler.app.mailto key.
I couldn't get that to work, so I tried an experiment. I created the file /home/pwa/bin/ffoxtest (executable) with contents: #/bin/sh echo Start the file > ~/tmp/flog echo "1: " $1 >> ~/tmp/flog echo "2: " $2 >> ~/tmp/flog I then set the value of network.protocol-handler.app.mailto to /home/pwa/bin/ffoxtest and found that the ffoxtest program wasn't being executed since ~/tmp/flog wasn't getting modified. Yet setting that variable to kmail causes kmail to be invoked (but without including the link in the created message). So it seems that the variable does have an effect, but it doesn't just call the program that's given as the key. I'm puzzled as to what it really does. Paul
participants (3)
-
Paul W. Abrahams
-
Scott Leighton
-
Will Stephenson