<<< Date Index >>>     <<< Thread Index >>>

Re: calling firefox from mutt - urlview



On Sun, Aug 19, 2007 at 02:06:07PM +1000, Chris wrote:
> I'm using urlview v0.9 with mutt v1.5.12 and firefox v2.0.0.3 on
> OpenBSD 4.1. I just put the following line in my /home/me/.urlview and
> nothing in .muttrc or anywhere else.
> 
> When I go to mutt and press CTRL-b, it shows the url list and when I
> click one of the URLs, it opens up firefox and nothing else happens.
> 
> Any help would be much appreciated. Thanks.
> 
> .urlview -
> 
> REGEXP ((http|https|ftp|gopher):(//)?[^ <>"\t]*|www\.[-a-z0-9.]+)[^ 
> .,;\t<">\):]
> COMMAND /usr/bin/nohup firefox -remote "openURL("%s", new-tab)"
> >/dev/null 2>&1 &

The situation is a little different here (in my linux box). I use
urlview v0.9 and mutt v1.5.13, ubuntu feisty. In order to open urls in 
firefox, I modified /etc/urlview/url_handler.sh file, change 

http_prgs="/usr/bin/x-www-browser:PW /usr/bin/www-browser:XT 
        /usr/bin/galeon:PW /usr/bin/konqueror:PW /usr/bin/mozilla:PW 
        /usr/bin/lynx:XT /usr/bin/w3m:XT /usr/bin/links:XT 
        /usr/bin/X11/netscape:PW"

to 

http_prgs="/usr/bin/firefox:PW"

Since urlview has some problems handling mime-encoded input (which I saw
in the /usr/share/doc/urlview/README.Debian file), I also add a macro in
my muttrc:

macro index,pager \Cb ":set pipe_decode\n|urlview\n:unset pipe_decode\n"\
                 "call urlview to extract URLs out of a message"

And it works just fine.
-- 
Cheers
Feifei Jia

Attachment: signature.asc
Description: Digital signature