Re: Buggy urlview command
On 2005-04-11, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> Hi,
>
> The manual says:
>
> 4.13. Start a WWW Browser on URLs (EXTERNAL)
>
> If a message contains URLs (unified resource locator = address in the
> WWW space like http://www.mutt.org/), it is efficient to get a menu
> with all the URLs and start a WWW browser on one of them. This
> functionality is provided by the external urlview program which can be
> retrieved at ftp://ftp.mutt.org/mutt/contrib/ and the configuration
> commands:
>
> macro index \cb |urlview\n
> macro pager \cb |urlview\n
>
> But if the message is in base64, this doesn't work.
True. The manual should probably mention using 'pipe_decode' to
work around this. I use these instead:
macro index \cB ":unset wait_key; set pipe_decode\n|w3m\n:set wait_key;
unset pipe_decode\n" "call w3m to extract URLs out of a message"
macro pager \cB ":unset wait_key; set pipe_decode\n|w3m\n:set wait_key;
unset pipe_decode\n" "call w3m to extract URLs out of a message"
Just replace "w3m" with "urlview", if you prefer.
HTH,
Gary
--
Gary Johnson | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA