Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mailto protocol in firefox (OT?)

2 views
Skip to first unread message

Patrick Wiseman

unread,
Mar 25, 2004, 12:10:07 AM3/25/04
to
This may be OT, but I've experienced the mailto frustration in firefox as
a debian user, and so offer a solution to other debian users.

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

iain d broadfoot

unread,
Mar 25, 2004, 6:40:19 AM3/25/04
to
* Patrick Wiseman (pwis...@mindspring.com) wrote:
> This may be OT, but I've experienced the mailto frustration in firefox as
> a debian user, and so offer a solution to other debian users.

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/

signature.asc
0 new messages