Thread View: news.software.readers
2 messages
2 total messages
Started by alb
Fri, 06 Feb 2015 07:10
[tin] following news url
Author: alb
Date: Fri, 06 Feb 2015 07:10
Date: Fri, 06 Feb 2015 07:10
14 lines
1117 bytes
1117 bytes
Hi everyone, is tin supporting RFC5538 with respect to news URIs? How can I 'go to' an URI in an article? Thanks a lot, Al -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
Re: [tin] following news url
Author: 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."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads