🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #61859

Re: XPAT

#61859
From: gunny
Date: Thu, 25 May 2000 00:00
68 lines
2751 bytes
Are we talking XNews here? Looking at your header I guess so.

I believe the "Find" command looks in the downloaded info, whereas the XPAT 
searches directly on the server side (and only downloads the matching msgs 
therefor being the faster one).
As you say, you should check if the server supports XPAT searches. I don't 
know of any news client that can verify that, but I do know that it is 
possible with rebol.
Get the version of rebol for your operating system from www.rebol.com
Once it runs, these are the instructions to type (or copy and paste):

do %nntp.r
nntp-host: news://your.newsserverhere.dom
np: open nntp-host
result: insert np [capabilities?]
print result

This is the result from the above commands for my ISP's newsreader (change 
the 2nd line). At the bottom you'll see that the XPAT command actually is 
supported by news.skynet.be:

>> do %nntp.r
Script: "REBOL news Protocol $Revision: 1.1 $" (22-May-1999/0:10:40)
news protocol loaded
>> nntp-host: news://news.skynet.be
== news://news.skynet.be
>> np: open nntp-host
connecting to: news.skynet.be
>> result: insert np [capabilities?]
== [{100 Legal commands
  authinfo user Name|pass Password|generic <prog> <args>
  article [MessageID|Number]
  body [MessageID|Num...
>> print result
100 Legal commands
  authinfo user Name|pass Password|generic <prog> <args>
  article [MessageID|Number]
  body [MessageID|Number]
  date
  group newsgroup
  head [MessageID|Number]
  help
  ihave
  last
  list [active|active.times|newsgroups|distributions|distrib.pats|overvi
ew.fmt|subscriptions|motd]
  listgroup newsgroup
  mode reader
  newgroups yymmdd hhmmss ["GMT"] [<distributions>]
  newnews newsgroups yymmdd hhmmss ["GMT"] [<distributions>]
  next
  post
  slave
  stat [MessageID|Number]
  xgtitle [group_pattern]
  xhdr header [range|MessageID]
  xover [range]
  xpat header range|MessageID pat [morepat...]
  xpath MessageID
Report problems to <usenet@news1.skynet.be>

>>


Best Regards,
Gunny

Technical Details
Message-ID: <8giqon$133$1@news0.skynet.be>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <8F3E99F14thebluejaycanadacom@216.13.36.152>

Show Full Headers
Complete Article Headers
Message-ID: <8giqon$133$1@news0.skynet.be>
Subject: Re: XPAT
Date: Thu, 25 May 2000 00:00:00 +0000
From: gunnyNOSPAM@yucom.be (gunny)
References: <8F3E99F14thebluejaycanadacom@216.13.36.152>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 627081517
X-Complaints-To: abuse@skynet.be
X-Trace: news0.skynet.be 959245911 1123 62.4.144.64 (25 May 2000 09:11:51 GMT)
Organization: Your Company
User-Agent: Xnews/03.04.11
NNTP-Posting-Date: 25 May 2000 09:11:51 GMT
Newsgroups: news.software.readers