πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83419

Re: Linking of usenet articles

#83419
From: John F. Morse
Date: Mon, 06 Sep 2010 23:08
64 lines
3715 bytes
Urs Janßen wrote:
> In <i61nn0$1hq$1@n102.xanadu-bbs.net>, John F. Morse wrote:
>   
>> tin 1.9.2 -- Clicking the hyperlink will load some unwanted article from 
>> the group, including when clicking the HTTP link. Maybe I don't know how 
>> to follow hyperlinks with tin?
>>     
>
> 'U' (PageViewUrl) is for walking through all hyperlinks in the article,
> each can be passed to an url-viewer (url_handler in tinrc) default is
> url_handler.pl, a script shipped with tin which spawns certain extern
> programs (lynx, mutt, ...) depending on the scheme) or skipped. mouse
> actions (if turned on; use_mouse=ON in tinrc) are bound to unrelated
> actions, i.e.: milldle mouse button is returns to the previous (upper)
> level.
>   

Mine is a little older (v 1.9.2) and uses a shell script instead of Perl:

john@hardy:~/.tin$ cat tinrc | grep url_handler
url_handler=url_handler.sh

john@hardy:~/.tin$ locate url_handler.sh
/usr/share/doc/tin/tools/url_handler.sh

For an experiment I changed the following lines in url_handler.sh for 
Firefox and Thunderbird:

john@hardy:/usr/share/doc/tin/tools$ cat -n url_handler.sh | grep firefox
    25                ( firefox -remote openURL\($url\) || firefox $url 
) || exit 1
    34                ( firefox -remote openURL\($url\) || firefox $url 
) || exit 1
john@hardy:/usr/share/doc/tin/tools$ cat -n url_handler.sh | grep 
thunderbird
    48    #                ( thunderbird -remote openURL\($url\) || 
thunderbird $url ) || exit 1
    58                ( thunderbird -remote openURL\($url\) || 
thunderbird $url ) || exit 1

This didn't change tin's actions from the original script. I received 
"Command failed" on both the http and nntp links.

Firefox will display a Webpage with only "firefox <url>" in a terminal.

I tried this and several other similar shell commands in line 25 above, 
but always received the "Command failed" message. Makes me wonder if the 
$url variable is not working?


> you may use 'L' for message-ids instead (cut off the leading news:)
> _if_ the ID is from the current group (this limitation is cause there
> is no trivial way to get the article if it's not in the same group
> when reading _not_ via nntp).
>   


That worked very well.


-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <i63s8o$l09$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <4c839754$0$28652$c3e8da3@news.astraweb.com> <i607mn$r5f$1@news.trigofacile.com> <i61nn0$1hq$1@n102.xanadu-bbs.net> <i62arg$ncg$1@news2.rz.uni-karlsruhe.de>

Show Full Headers
Complete Article Headers
Message-ID: <i63s8o$l09$1@n102.xanadu-bbs.net>
Subject: Re: Linking of usenet articles
Date: Mon, 06 Sep 2010 18:08:08 -0500
From: "John F. Morse" <john@example.invalid>
References: <4c839754$0$28652$c3e8da3@news.astraweb.com> <i607mn$r5f$1@news.trigofacile.com> <i61nn0$1hq$1@n102.xanadu-bbs.net> <i62arg$ncg$1@news2.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!optima2.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 64
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: n102.xanadu-bbs.net 1283814488 21513 192.168.89.210 (6 Sep 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Mon, 6 Sep 2010 23:08:08 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
In-Reply-To: <i62arg$ncg$1@news2.rz.uni-karlsruhe.de>
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 3513