🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #243903

Re: Enough of this Usenet-News nonsense

#243903
From: John F. Morse
Date: Sun, 19 Dec 2010 18:12
159 lines
6344 bytes
On Sun, 19 Dec 2010 14:27:23 +0000 Whiskers wrote:

> On 2010-12-18, Dan C <youmustbejoking@lan.invalid> wrote:
>> On Sat, 18 Dec 2010 15:00:42 +0000, notbob wrote:
>>
>>> On 2010-12-18, Dan C <youmustbejoking@lan.invalid> wrote:
>>> 
>>>> Easy.  Right here:
>>>>
>>>> http://www.news.astraweb.com/index.html
>>> 
>>>> The 25Gb plan for $10 will last you for *YEARS* if you're not doing
>>>> binaries.  Been using them for a few years and NEVER seen a single
>>>> problem, nor any down time.  Couldn't ask for better service.
>>> 
>>> Thanks, Dan.  I'll check 'em out after I'm done with usenet-news.  Do
>>> they have PATS, which allows the reconstruction of an entire thread
>>> from a single article?
>>
>> Don't know, never heard of that (PATS).  Seems like it would be
>> something the newsreader app does, though, not the server.
> 
> [...]
> 
> My guess is that the OP means 'does the server support XPAT searches?'
> That is a server-side service, and some servers do it and some don't.


He could telnet into the news server, authenticate (if required), then
issue the help command to see if XPAT is supported.

Here is an example telnet session with my cable ISP's NSP:


john@hardy:~$ telnet news.usenetserver.com 119 Trying 74.209.131.10...
Connected to news.usenetserver.com.
Escape character is '^]'.
200 news.usenetserver.com Welcome!
help
100 Legal Commands
  article [<messageid>|number]
  authinfo type value
  body [<messageid>|number]
  date
  group newsgroup
  head [<messageid>|number]
  help
  last
  list [active wildmat|active.times|counts wildmat] list
  [overview.fmt|newsgroups wildmat] listgroup newsgroup mode reader
  next
  post
  stat [<messageid>|number]
  xhdr field [range]
  xover [range]
  xpat field range pattern
  xfeature useragent <client identifier> xfeature compress gzip
  [terminator]
  xzver [range]
  xzhdr field [range]
  quit
..
quit
205 Goodbye
Connection closed by foreign host.


Another NSP reports the XPAT parameters as:

   XPAT <header> <range|msgid> <pattern> <pattern..>

And another server (InterNetNews NNRP server INN 2.4.5):

  xpat header range|MessageID pat [morepat...]

And another (InterNetNews NNRP server INN 2.5.2):

  XPAT header message-ID|range pattern [pattern ...]


Oh! Here's Astraweb (no authentication required):

john@hardy:~$ telnet news.astraweb.com 119 Trying 207.246.207.164...
Connected to news.astraweb.com.
Escape character is '^]'.
200 news.astraweb.com NNRP Service Ready (posting ok) (yEnc enabled). help
100 Legal commands
  article [MessageID|Number]
  body [MessageID|Number]
  date
  head [MessageID|Number]
  help
  mode reader|stream
  slave
  quit
  group newsgroup
  last
  next
  list
  [active|active.times|newsgroups|extensions|distributions|distrib.pats|moderators|overview.fmt|subscriptions]
  listgroup newsgroup
  newgroups yymmdd hhmmss ["GMT"] [<distributions>] post stat
  [MessageID|Number]
  xgtitle [group_pattern]
  xhdr header [range|MessageID]
  xover [range]
  xzver [range]
  xzhdr header [range|MessageID]
  xpat header range|MessageID pat
  authinfo user Name|pass Password
..
quit
205 Transferred 702 bytes in 0 articles, 0 groups.  Disconnecting.
Connection closed by foreign host.


>From http://asg.web.cmu.edu/rfc/rfc2980.html

2.9 XPAT

    XPAT header range|<message-id> pat [pat...]


    The XPAT command is used to retrieve specific headers from specific
    articles, based on pattern matching on the contents of the header.
    This command was first available in INN.

    The required header parameter is the name of a header line (e.g.
    "subject") in a news group article. See RFC 1036 for a list of valid
    header lines. The required range argument may be any of the following:

    an article number

    an article number followed by a dash to indicate all following

    an article number followed by a dash followed by another article
    number

    The required message-id argument indicates a specific article.

    The range and message-id arguments are mutually exclusive. At least
    one pattern in wildmat must be specified as well. If there are
    additional arguments the are joined together separated by a single
    space to form one complete pattern. Successful responses start with a
    221 response followed by a the headers from all messages in which the
    pattern matched the contents of the specified header line. This
    includes an empty list. Once the output is complete, a period is sent
    on a line by itself. If the optional argument is a message-id and no
    such article exists, the 430 error response is returned. A 502
    response will be returned if the client only has permission to
    transfer articles.



-- 
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: <pan.2010.12.19.18.12.15.193501@example.invalid>
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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
References: <4d0b8715$0$16923$882e7ee2@usenet-news.net> <pan.2010.12.18.05.34.46@moria.lan> <4d0ccc9a$0$9751$882e7ee2@usenet-news.net> <pan.2010.12.18.23.01.55@moria.lan> <slrnigs5ib.85u.catwheezel@ID-107770.user.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <pan.2010.12.19.18.12.15.193501@example.invalid>
Subject: Re: Enough of this Usenet-News nonsense
Date: Sun, 19 Dec 2010 12:12:16 -0600
From: "John F. Morse" <john@example.invalid>
References: <4d0b8715$0$16923$882e7ee2@usenet-news.net> <pan.2010.12.18.05.34.46@moria.lan> <4d0ccc9a$0$9751$882e7ee2@usenet-news.net> <pan.2010.12.18.23.01.55@moria.lan> <slrnigs5ib.85u.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Xanadu BBS
Lines: 159
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: n102.xanadu-bbs.net 1292782336 5853 192.168.89.24 (19 Dec 2010
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Sun, 19 Dec 2010 18:12:16 +0000 (UTC)
User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux))