Subject: Re: Starting browser from pine

From: [email-masked] (Sven Guckes)
Date: 11 Apr 1997 18:33:13 GMT

Jim Sheafer wrote:
>Anyone ever start a browser based on a url in a mail/news message?  I have
>been trying to start lynx via something like this: <PIPE> grep http | xargs
>lynx <RETURN> Tried several different variations (Raw, un-captured, etc).
>Any success stories?

Yes, mutt and slrn.  They replace Pine quite nicely.  Check them out!

Sven

-- 
http://www.math.fu-berlin.de/~guckes/mutt/
http://www.math.fu-berlin.de/~guckes/slrn/

---

From: Jim Sheafer <[email-masked]>
Date: Fri, 11 Apr 1997 10:16:33 -0400

Anyone ever start a browser based on a url in a mail/news message?

I have been trying to start lynx via something like this:

<PIPE> grep http | xargs lynx <RETURN>

Tried several different variations (Raw, un-captured, etc).

Any success stories?

Jim

[email-masked]

---

From: "Robert de Bath" <[email-masked]>
Date: Sat, 12 Apr 1997 11:04:26 +0100 (BST)

> Tried several different variations (Raw, un-captured, etc).
Yes, put the attached script into a file and pipe the current message
through it uncaptured. Standard format links appear in it as real links
that can be saved or followed.

General idea is the script converts an ascii message into HTML.

--
Rob.                           (Robert de Bath <http://www.cix.co.uk/~mayday>)

#!/bin/sh -
FILE=$1
[ "$FILE" = "" ] && FILE=-

(
echo "<html>"
echo "<head>"
echo "<title>File $1</title>"
echo "</head>"
echo "<body><PRE>"

cat $FILE | sed \
  -e  's/>/ \&gt /g' -e  's/</ \&lt /g' \
  -e 's:http\://\([^"> ]*[^()\.,">& ]\):<A HREF=http\://\1>http\://\1</A>:g' \
  -e 's:ftp\://\([^"> ]*[^()\.,">& ]\):<A HREF=ftp\://\1>http\://\1</A>:g' \
  -e  's/ &gt /\&gt /g' -e  's/ &lt /\&lt /g'

echo '</PRE></body></html>'
) > /tmp/l_file.html
lynx -force_html /tmp/l_file.html < /dev/tty > /dev/tty 2>&1
echo '[24H'

---

From: Jim Sheafer <[email-masked]>
Date: Mon, 14 Apr 1997 11:36:10 -0400 (EDT)

> General idea is the script converts an ascii message into HTML.

Well done. Script works great. Thanks for your assistance.

Jim