Article View: news.software.readers
Article #258962Re: [tin] following news url
From: Urs Janßen
Date: Sat, 07 Feb 2015 00:01
Date: Sat, 07 Feb 2015 00:01
68 lines
4026 bytes
4026 bytes
In <cjj7nqF51bdU2@mid.individual.net>, alb wrote:
> is tin supporting RFC5538 with respect to news URIs?
the following perlre is used to detect and pass them to an
external command (tin.h NEWS_REGEX ~705):
#v+
\b(?:s?news|nntp):(?:(?:(?://(?:(?:[^\W_](?:(?:-|[^\W_]){0,61}(?<!---)[^\W_])?|xn--[^\W_](?:-(?!-)|[^\W_]){1,57}[^\W_])\.)+[a-z]{2,14}\.?|localhost|(?:(?:2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(?:2[0-4]\d|25[0-5]|[01]?\d\d?))(?::\d+)?(?(?=[/])[^()\^\[\]{}\|\x00-\x1f\x7f\s"<>'\\:,;]+|$))|[^\^\[\]{}\|\x00-\x1f\x7f\s<>"():,;\\'/]+)\b
#v-
the regexp is older than RFC 5538 (that's why there is a comment
above it in the source code "TODO: check against RFC 5538" ,-)), but
the common cases should be detected.
> How can I 'go to' an URI in an article?
[tin(1)]
| ARTICLE VIEWER COMMANDS
|[...]
| PageViewUrl 'U'
| Display a list of URLs in the current article. See the sec‐
| tion "URL LISTING" for more information.
[...]
| URL LISTING
| PageViewUrl ('U') displays a list of URLs in the current article.
| Besides the common moving keys, the following commands are available:
|
| UrlSelect '^J' '<CR>'
| The current URL will be prompted and opened using
| the url_handler. '<ESC>' or no input will skip the URL.
|
| SearchSubjF '/'
| URL forward search.
|
| SearchSubjB '?'
| URL backward search.
|
| SearchRepeat '\'
| Repeat the previous search.
|
| ShellEscape '!'
| Shell escape.
|
| ToggleInfoLastLine 'i'
| Toggle the display of the current URL in the last line.
|
| Help 'h' Help screen of commands available.
|
| ToggleHelpDisplay 'H'
| Toggle the display of help mini menu at the bottom of
| the screen.
|[...]
| GLOBAL OPTIONS MENU AND TINRC CONFIGURABLE VARIABLES
|[...]
| Program that opens URL's (url_handler)
| The program that will be run when launching URL's in the
| article viewer using PageViewUrl ('U'). The actual URL will be
| appended to this. Default is url_handler.pl %s.
The example url_handler.pl
<ftp://ftp.tin.org/pub/news/clients/tin/tools/url_handler.pl> does support the
$BROWSER[_METHOD] env. vars. i.e. $BROWSER_NEWS=lynx, $BROWSER_NNTP=lynx
HTH,
urs
--
Jef Poskanzer:
"When people aren't stupid Usenet is even more useful. Too bad this happens
so rarely."
Technical Details
Message-ID:
<mb3klg$ug7$1@news.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.readers.20150219.mbox.gz!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news.szaf.org!dolly.gnuher.de!news.gnuher.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mailReferences:
<cjj7nqF51bdU2@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <mb3klg$ug7$1@news.rz.uni-karlsruhe.de>
Subject: Re: [tin] following news url
Date: Sat, 07 Feb 2015 00:01:52 +0000
From: Urs Janßen <urs@buil.tin.org>
References: <cjj7nqF51bdU2@mid.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20150219.mbox.gz!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news.szaf.org!dolly.gnuher.de!news.gnuher.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
Newsgroups: news.software.readers
Organization: tin.org
Lines: 68
Sender: Urs Janßen <urs@akk15-int.akk.uni-karlsruhe.de>
NNTP-Posting-Host: akkuser-dmz.akk.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.rz.uni-karlsruhe.de 1423267312 31239 172.22.9.237 (7 Feb 2015
X-Complaints-To: abuse@uni-karlsruhe.de
NNTP-Posting-Date: Sat, 7 Feb 2015 00:01:52 +0000 (UTC)
Cancel-Lock: sha1:DF4dBalJTPEi2Aiule4Nn5ED2OE=
X-No-Archive: yes
Archive: no
X-No-HTML: yes
User-Agent: tin/2.3.2-20150125 ("Tallant") (UNIX) (Linux/3.2.0-74-generic
(x86_64))