[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Firefox 1.0, mailto, and mutt



On Wed, 24 Nov 2004 16:11:55 -0800, Jim McCloskey <mcclosk@ucsc.edu> wrote:
> 
> Very nice to have Firefox 1.0 in sarge now.
> 
> But .... the mozex extension no longer works, it seems (and judging
> from the web-site hasn't been updated since September 2003).
> 
> I used mozex with earlier versions of Firefox to bring up mutt in
> response to clicking on mailto links.
> 
> Does anyone know of a way of doing this also with Firefox 1.0?
> I'd really rather not have to use Thunderbird for this.

I use pine, but a similar solution would presumably work for mutt.

To get pine to open Firefox mailto links, I have an executable at

/usr/local/bin/pine-helper.sh which reads:

#!/bin/bash

MAILTO=`echo $@ | awk 'BEGIN{FS=":"} $1 ~ /mailto/ {print $2}'`

XTERM="/usr/bin/X11/xterm"
MUA="/usr/bin/pine"

${XTERM} -e ${MUA} ${MAILTO}


It handles ordinary mailto links, but doesn't deal well with more
complicated ones (with Subject:, Cc:, etc.) - so if someone can
suggest a more sophisticated bit of awk it would be appreciated.

Then, to get Firefox to use the script, put the following line in

~/.firefox/default/<profile>.slt/user.js

user_pref("network.protocol-handler.app.mailto", "/usr/local/bin/pine-helper.sh"
);

(That's all one line.)

Patrick



Reply to: