I've used urlview to help me view URLs embedded in email, and it works
fine, but when a message contains lots of URLs, it can be difficult to
choose the right one since urlview provides no message context.

I recently discovered a neat feature of the w3m browser that makes it an
attractive alternative to urlview.  Simply pipe the message or
attachment to w3m as you would urlview.  When invoked this way, w3m
behaves as a pager, allowing you to read the message much as you would
using less.  Typing a colon (:) causes w3m to mark URL-like strings on
the current page as anchors.  Then move the cursor to the anchor/link of
interest and type ESC M (note the upper-case M) which invokes an
external browser on the link.  Cool!

Alternatively, you can just type RETURN instead of ESC M to use w3m
itself to browse the link.

To get this to work smoothly with netscape, I set the external browser
in my ~/.w3m/config file like this:

    extbrowser /home/garyjohn/bin/netscape2

and created a netscape2 script containing the following line:

    netscape -remote "openURL($1, new-window)" 2> /dev/null || netscape $1

You could also use w3m as your mutt $pager all the time, but as a pager,
I don't think w3m's interface is quite as nice as less's.

You can get w3m from

    http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/

-- 
Gary Johnson                 | Agilent Technologies
[EMAIL PROTECTED]         | RF Communications Product Generation Unit
                             | Spokane, Washington, USA

Reply via email to