Article View: news.software.readers
Article #254510Re: Linux newsreader that can search newsserver by Message-ID?
From: Whiskers
Date: Mon, 20 May 2013 22:51
Date: Mon, 20 May 2013 22:51
60 lines
3932 bytes
3932 bytes
On 2013-05-20, Mike Easter <MikeE@ster.invalid> wrote: > Whiskers wrote: > >> The most direct method is to fire up your telnet client and use it to log >> in to your news-server, then issue the ARTICLE command; eg (you may need >> the AUTHINFO USER username and AUTHINFO PASS password commands to log in): >> >> #v+ >> ]$ telnet tavy nntp >> Trying ::1... >> Connected to tavy. >> Escape character is '^]'. >> 200 Leafnode NNTP daemon, version 2.0.0.alpha20110806a at >> tavy.mobile.private >> ARTICLE <1l342q2.1sn44nt1hsvttmN%snipe@spambin.fsnet.co.uk> > > While I know that it would be a good experience for me to practice - > learn how to - writing a script... > > How would one write a (bash) script that would contain user/pass for > server authentication (for a general/net server, not personal server) > and then pause for pasting in the MID so that the message result would > then be/get pasted into some editor such as gedit and/or perhaps saved > as a .nws file? Look up the utility called "zenity" if you want a GUI around the user interaction. As a general rule, I'd recommend getting all the parameters into your script before it tries to contact the upstream server (or pass the parameters to the tool that will actually perform the transaction). 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- from a command prompt, if you have Lynx installed and an active account with Individual.net. > And... when one is giving the command for article and/but using the > article number associated with a particular group, may I 'presume' that > one can request the article by MID from a typical general news server > such as NIN just using the MID, no group? The MID is all you need. You only need to specify the newsgroup if you are referring to the article using that server's own local message number instead of the global MID. See also RFC 1738 for description of the news: and nntp:// URL formats. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Technical Details
Message-ID:
<slrnkpla6q.94u.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!lg1no20907847wic.0!news-out.google.com!ed6ni6239wic.0!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>Show Full Headers
Complete Article Headers
Message-ID: <slrnkpla6q.94u.catwheezel@ID-107770.user.individual.net> Subject: Re: Linux newsreader that can search newsserver by Message-ID? Date: Mon, 20 May 2013 23:51:06 +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> 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!lg1no20907847wic.0!news-out.google.com!ed6ni6239wic.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail X-Received: by 10.180.12.200 with SMTP id a8mr2525135wic.1.1369091594812; MIME-Version: 1.0 Newsgroups: news.software.readers Organization: is an alien concept Lines: 60 X-Trace: individual.net 4mExUDC8QMtBvlrfPbQtOwYhVnEPutnPHIW0qeMlGo1RBwjijM X-Orig-Path: tavy.mobile.private!not-for-mail Cancel-Lock: sha1:FXJPJtubMYc/Crj6pJJRCKCHP+4= 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: 3673