Article View: news.software.readers
Article #254555Re: Linux newsreader that can search newsserver by Message-ID?
From: Whiskers
Date: Tue, 21 May 2013 11:11
Date: Tue, 21 May 2013 11:11
67 lines
4466 bytes
4466 bytes
On 2013-05-21, John F. Morse <john@example.invalid> wrote:
> On 05/20/2013 05:51 PM, Whiskers wrote:
>
>> Lynx is very handy for scripting, and can handle news: and nntp:// URLs; it
>> will even prompt you for login details if necessary :)) (It isn't the
>> world's best tool for reading and posting to newsgroups, although it can).
>>
>> Try
>>
>> #v+
>> $ lynx nntp://news.individual.net/"<1l342q2.1sn44nt1hsvttmN%snipe@spambin.fsnet.co.uk>"
>> #v-
>
> The quotes (") cause a failure if used from within a running Lynx session.
> Without the quotes, Lynx works very well, including to unusual ports and with
> automatic authinfo prompting.
Yes; bash gets confused by < and > characters (and some others) as they
have 'special meanings'; once you're inside Lynx, you aren't using bash any
more. The "" tell bash to take the enclosed character string as just that,
and not to try to make any sense out of it.
> However, as you show, the quotes are required if Lynx is started from a
> terminal with the full URI.
>
> Lynx even follows the References M-IDs (select one and press <Enter>).
It should recognise well-formed URLs within the body of an article too -
and is quite happy with Gopher and HTML.
> Don't know what your "#v+" and "#v-" represent. It works with or without.
Those are 'verbatim marks'; they tell newsreader software not to impose any
'style' or 'formatting' on the text in between, nor to 'parse' it, nor try
to execute anything that might be a command. I suspect that only a few
newsreaders actually know what to do with them, but for those that do
they're useful.
> Were you implying a comment, or root is giving those commands? It is hard to
> say since you also show "$" as likely a user prompt, but is easily confused by
> some new users as part of the command.
By convention, when showing command prompts in the context of Unix or
Linux, a $ indicates that a normal user can execute the command and a #
indicates that 'root' or 'super-user' or 'admin' status is required.
I sometimes forget that some people still aren't using *nix <WEG>
> I'm not familiar with those two, and bash(1) is quite large. Grepping the
> bash(1) output for those characters finds nothing. Please enlighten me, and TIA.
>
> This works for your example in BASH:
>
> lynx nntp://news.my.net/"<1l342q2.1sn44nt1hsvttmN%snipe@spambin.fsnet.co.uk>"
>
>
> Here is an example of retrieving the same article from a transit server on
> Port 433, which also requires user (reader) authentication (not shown):
>
> lynx nntp://news.my.net:433/"<1l342q2.1sn44nt1hsvttmN%snipe@spambin.fsnet.co.uk>"
Yup; good, init :))
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<slrnkpmlit.161.catwheezel@ID-107770.user.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.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!h2no20672688wiw.1!news-out.google.com!hv6ni6381wib.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<1l342q2.1sn44nt1hsvttmN%snipe@spambin.fsnet.co.uk> <slrnkphv0h.s4.catwheezel@ID-107770.user.individual.net> <1l34ph8.1r509uy1l3modrN%snipe@spambin.fsnet.co.uk> <slrnkpig57.s4.catwheezel@ID-107770.user.individual.net> <avvifjFfmc0U1@mid.individual.net> <slrnkpla6q.94u.catwheezel@ID-107770.user.individual.net> <knf4u2$3ef$1@optima5.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnkpmlit.161.catwheezel@ID-107770.user.individual.net> Subject: Re: Linux newsreader that can search newsserver by Message-ID? Date: Tue, 21 May 2013 12:11:25 +0100 From: Whiskers <catwheezel@operamail.com> References: <1l342q2.1sn44nt1hsvttmN%snipe@spambin.fsnet.co.uk> <slrnkphv0h.s4.catwheezel@ID-107770.user.individual.net> <1l34ph8.1r509uy1l3modrN%snipe@spambin.fsnet.co.uk> <slrnkpig57.s4.catwheezel@ID-107770.user.individual.net> <avvifjFfmc0U1@mid.individual.net> <slrnkpla6q.94u.catwheezel@ID-107770.user.individual.net> <knf4u2$3ef$1@optima5.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.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!h2no20672688wiw.1!news-out.google.com!hv6ni6381wib.1!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail X-Received: by 10.180.210.161 with SMTP id mv1mr3742290wic.1.1369163594073; MIME-Version: 1.0 Newsgroups: news.software.readers Organization: is an alien concept Lines: 67 X-Trace: individual.net tymrDVv/Q/cvKlf8v3Omvwd/idm3U58ZOonxPKdGkb/kFtK2IX X-Orig-Path: tavy.mobile.private!not-for-mail Cancel-Lock: sha1:ciCwmpht6aJCY18cVgNYnN0n/4A= X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_ "Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@ p& g^8<z5>HA User-Agent: slrn/1.0.1 (Linux) X-Original-Bytes: 4211