When some people discover the truth, they just can't understand why everybody isn't eager to hear it.
TwitterLiked the quote? Tweet it!
see all quotes

Pine URL Viewer


I like to launch a browser from pine after I press on a link in the message viewer and let pine continue to allow me to read other email while the browser loads the URL in the background.

To that end, I found this stuff out there, and am re-producing my customised version here for convenience.

Create a text script somewhere, say $HOME/scripts/urlview, and put the following in it :



#!/bin/sh
# short script to invoke BROWSER from within pine as a background
# process, so pine can continue. Only arg is the URL.
# Author: Ed Arnold
# Modified by: Atul Nene
BROWSER="konsole -e lynx"
#BROWSER=/usr/bin/konqueror
#BROWSER=/usr/local/netscape/netscape
URL=`echo $1 | sed 's/,/%2C/g'`

#
# handle viewing HTML attachment or message files
#
ATTACH=`echo $URL | grep /tmp/img-HTM | wc -l`
if [ $ATTACH = 1 ]; then
cp $URL ${URL}.html
URL=${URL}.html
fi

$BROWSER "$URL" &


and modify these 2 settings in your .pinerc :



image-viewer=<$HOME>/scripts/urlview
url-viewers=<$HOME>/scripts/urlview



Note: Ensure to replace the <$HOME> with the actual path.

Message in Public Interest
Laughing ...

About

Human. Professional. Technologist. Musician. Naturophile. Linguaphile. Traveller. Philosopher. Friend. Don't-Worry-Be-Happy-ist.