Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Anyway to have pine spell out links in email?

17 views
Skip to first unread message

unruh

unread,
Dec 14, 2012, 5:42:54 PM12/14/12
to
Is there some way to get (al)pine to automatically spell out links in an email?
Ie, that pine shows what the address is for link within the displayed
text? (This would for example make most phishing obvious and would also
allow me to cut and paste the link should I happen to want to go to that
link.)


Jean-Pierre Coulon

unread,
Dec 15, 2012, 7:11:04 AM12/15/12
to
I obtain what you want if I don't check the option "Suppress Server After
Link in HTML" in Setup, Config.

Jean-Pierre Coulon

unruh

unread,
Dec 15, 2012, 1:10:55 PM12/15/12
to
On 2012-12-15, Jean-Pierre Coulon <cou...@cacas.pam.obs-nice.fr> wrote:
> I obtain what you want if I don't check the option "Suppress Server After
> Link in HTML" in Setup, Config.
>
Well not really.
a) that does not work in pine ( no such options)
b) in alpine, all that having that option unclicked does is list
the main web address, not the full link. Thus a link
List-Unsubscribe:
<http://digital.vancouversun.com/epaper/showlink.aspx?pageid=Unsub
scribeFromEmails&user=xxxxxx%2bdb%2byyyySA3yLf2Sca2xMTffykFWCr8tE9
BYTO0nhDKlZDbx3lLEMQcNxD&from=mail&noconfirm=1>

comes out as
List-Unsubscribe:[digital.vancouversun.com]

better than nothing in detecting phishing, but
which means I can still not cut and paste it to get at the link.


Stuart Barkley

unread,
Dec 15, 2012, 8:22:24 PM12/15/12
to
I have wanted something like this for a long time. Often I have
resorted to using 'H' to view the html source and attempt to find and
reconstruct the URL.

You got me thinking about this and I found something that works for
me. I added the following to my .pinerc:

url-viewers="/bin/echo 'The URL is: <_URL_>' >> PINE-URL.tmp"

This defines a program to run when a URL is selected. The 'program'
here just writes the URL into a file in my home directory which can be
cat'ed in a separate window.

Even better, after selecting the URL, pine will display it with
confirmation question about editing or viewing the URL. If the URL is
short enough you can just copy it from there.

It might be nice to copy the URL to the X clipboard. 'xclip' appears
to exist and would probably do the job but isn't currently installed
on my server. I started to build this for FreeBSD, but it wants to
bring in too much other stuff which doesn't belong on a server
(ghostscript, teTeX, libwww, parts of cups).

Stuart
--
I've never been lost; I was once bewildered for three days, but never lost!
-- Daniel Boone

Stuart Barkley

unread,
Dec 15, 2012, 9:34:51 PM12/15/12
to
On Sat, 15 Dec 2012 at 20:22 -0000, Stuart Barkley wrote:

> You got me thinking about this and I found something that works for
> me. I added the following to my .pinerc:
>
> url-viewers="/bin/echo 'The URL is: <_URL_>' >> PINE-URL.tmp"
>
> This defines a program to run when a URL is selected. The 'program'
> here just writes the URL into a file in my home directory which can
> be cat'ed in a separate window.
>
> Even better, after selecting the URL, pine will display it with
> confirmation question about editing or viewing the URL. If the URL
> is short enough you can just copy it from there.
>
> It might be nice to copy the URL to the X clipboard. 'xclip'
> appears to exist and would probably do the job but isn't currently
> installed on my server. I started to build this for FreeBSD, but it
> wants to bring in too much other stuff which doesn't belong on a
> server (ghostscript, teTeX, libwww, parts of cups).

My bad. The dependencies where from something else I was recently
playing with.

Back to alpine. Putting the following in .pinerc does most of the job
for me:

url-viewers="/bin/echo '_URL_' | /usr/local/bin/xclip"

Security note: I included _URL_ in single quotes to attempt the shell
from interpreting anything in the (variable expansion, ';' characters,
etc). I haven't test to be sure that alpine or something else isn't
still interpreting anything malicious in the URL.
0 new messages