The script reproduced below is an adaptation from thunderbird-helper.sh
which I found at
http://www.wlug.org.nz/MozillaFirefoxNotes
You may want the kind of functionality from a mailto link that Thunderbird
offers, but all I need from a mailto link is an email editor/sender. I
still use pine (having been using it since way back), but the script
should be adaptable to other MUAs.
So, here's the script (save as pine-helper.sh and make executable; mine's
in /usr/local/bin):
#!/bin/bash
MAILTO=`echo $@ | awk 'BEGIN{FS=":"} $1 ~ /mailto/ {print $2}'`
XTERM="/usr/bin/X11/xterm"
MUA="/usr/bin/pine"
${XTERM} -e ${MUA} ${MAILTO}
Then, to get firefox to use it, in <profile>/user.js, put
user_pref("network.protocol-handler.app.mailto", "/usr/local/bin/pine-helper.sh");
(That's all one line.)
It's imperfect ("?subject=whatever" will show up in the address) but
otherwise effective. (I need to learn a little awk to fix that.)
Patrick
--
Patrick Wiseman pwis...@mindspring.com
Linux user #17943 *Google First, Ask Later*
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Or, you could just install the mozex extension[1], which allows
you to setup a mailto: handler, as well as a few other nifty
things.
cheers,
iain
[1] http://mozex.mozdev.org/
--
"If sharing a thing in no way diminishes it, it is not
rightly owned if it is not shared." -- St. Augustine
#rm -rf /
http://www.geeksoc.org/