🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Bas Ruiter Mon, 28 Oct 2002 08:32
XPAT / NEWNEWS not supported in all newsservers?
#61685
Author: Bas Ruiter
Date: Mon, 28 Oct 2002 08:32
26 lines
1668 bytes
When I do a HELP the @home newserver responds with a list of
supported commands.

Included in that list is XPAT, and NEWNEWS.

I tried, and found XPAT to work.

I tried NEWNEWS and it does -not- work, I get a response that
this command has been disabled.

What I wanted to know is, do all servers commonly support XPAT?
Do all servers commonly -not- support NEWNEWS? And what other
commands should I be aware of that may or may not be supported?



 Bas Ruiter

-- 

[ l o r d s n o w @home.nl    http://members.home.nl/ l o r d s n o w ]

 Only when the population of 50 mysteriously dropped to 7 did the
 remainder start to suspect Hungry.
Re: XPAT / NEWNEWS not supported in all newsservers?
#61686
Author: Faye Pearson
Date: Mon, 28 Oct 2002 12:18
53 lines
2786 bytes
On Mon, 28 Oct 2002 09:32:32 +0100, Bas Ruiter <lordsnow@home.nl> wrote:
> When I do a HELP the @home newserver responds with a list of
> supported commands.
> 
> Included in that list is XPAT, and NEWNEWS.
> 
> I tried, and found XPAT to work.
> 
> I tried NEWNEWS and it does -not- work, I get a response that
> this command has been disabled.
> 
> What I wanted to know is, do all servers commonly support XPAT?
> Do all servers commonly -not- support NEWNEWS? And what other
> commands should I be aware of that may or may not be supported?

Basically this is down to how much load the administrator wants to allow
on the news server :)

XPAT is easy to do if the header being checked is in the overview
database.  It's not so easy if it isn't as it requires an article lookup
for each article in the group. Ditto XHDR.  Actually I say "not so easy"
I mean not so fast.

NEWNEWS is often disabled if the server doesn't index articles by time
and therefore has to step through every article in the newsgroups
referenced.

You can't guarantee that either will work, you will have to provide fall
back mechanisms.

If you have bandwidth, then XOVER is generally the best bet as it
provides lots of useful information in one handy stream.

If not, XPAT for specific article searches maybe (try to keep within the
fields that are returned by XOVER though).

XHDR can only get one header at a time, so if you are matching subjects
to articles (or Message-IDs to articles it's probably the next best thing
to XOVER.

If both fail then HEAD is probably the last resort :/

If you want to minimise latency then stacking commands is useful, but
you don't want to stack commands behind one which can fail.


Faye

-- 
Faye Pearson,
Covert Development
ClaraNET Ltd.
Re: XPAT / NEWNEWS not supported in all newsservers?
#61701
Author: Bas Ruiter
Date: Mon, 28 Oct 2002 20:39
22 lines
1722 bytes
> > I tried, and found XPAT to work.

> XPAT is easy to do if the header being checked is in the overview
> database.  It's not so easy if it isn't as it requires an article lookup
> for each article in the group. Ditto XHDR.  Actually I say "not so easy"
> I mean not so fast.

OK, so... XPAT is -always- implemented for headers that are in XOVER,
and -maybe- for other headers?



 Bas Ruiter

-- 

[ l o r d s n o w @home.nl    http://members.home.nl/ l o r d s n o w ]

 Only when the population of 50 mysteriously dropped to 7 did the
 remainder start to suspect Hungry.
Re: XPAT / NEWNEWS not supported in all newsservers?
#61703
Author: Russ Allbery
Date: Mon, 28 Oct 2002 20:48
20 lines
1900 bytes
Bas Ruiter <lordsnow@home.nl> writes:

>> XPAT is easy to do if the header being checked is in the overview
>> database.  It's not so easy if it isn't as it requires an article lookup
>> for each article in the group. Ditto XHDR.  Actually I say "not so easy"
>> I mean not so fast.

> OK, so... XPAT is -always- implemented for headers that are in XOVER,
> and -maybe- for other headers?

No, XPAT isn't always implemented at all.  (And when it is implemented,
there are sometimes subtle differences in how things like whitespace in
the pattern argument is handled.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: XPAT / NEWNEWS not supported in all newsservers?
#61705
Author: Curt Welch
Date: Tue, 29 Oct 2002 00:29
24 lines
2241 bytes
Bas Ruiter <lordsnow@home.nl> wrote:
> OK, so... XPAT is -always- implemented for headers that are in XOVER,
> and -maybe- for other headers?

It's never safe to say "always" in the context of Usenet. :)

Some servers have disabled or not implemented XPAT, but most probably
support it at least for the XOVER headers.  It's not one of the commands
that you can really assume will always be there when writing client
software.

The potential probelm is that XPAT can be a real source of abuse, it just
happens that it's not too often abused in real life.  If you want to find
all articles posted by someone it's fairly trivial to write NNTP client
code which will use XPAT to search every From: header in every article in
every group on a server.  It uses only a few MB of bandwidth for the NNTP
commands yet forces the server to read and search the entire overview
database (many GB of data) for the server for a search that may return only
10 articles.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: XPAT / NEWNEWS not supported in all newsservers?
#61706
Author: Andrew - Supernews
Date: Tue, 29 Oct 2002 00:43
19 lines
1675 bytes
In article <cq7rrukgcpn17qpi10be25vp78t4200bnr@4ax.com>, Bas Ruiter wrote:
> 
>> > I tried, and found XPAT to work.
> 
>> XPAT is easy to do if the header being checked is in the overview
>> database.  It's not so easy if it isn't as it requires an article lookup
>> for each article in the group. Ditto XHDR.  Actually I say "not so easy"
>> I mean not so fast.
> 
> OK, so... XPAT is -always- implemented for headers that are in XOVER,

no; some servers don't allow it at all, some allow it only for overview
headers, some allow it for specific headers in addition to the overview,
and some allow it for any header.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: XPAT / NEWNEWS not supported in all newsservers?
#61708
Author: Bas Ruiter
Date: Tue, 29 Oct 2002 08:17
19 lines
1639 bytes
> It's never safe to say "always" in the context of Usenet. :)
> 
> Some servers have disabled or not implemented XPAT, but most probably
> support it at least for the XOVER headers.

Any ball-park figures for how many that -do- support XPAT in some
form or other?


 Bas Ruiter

-- 

[ l o r d s n o w @home.nl    http://members.home.nl/ l o r d s n o w ]

 Only when the population of 50 mysteriously dropped to 7 did the
 remainder start to suspect Hungry.
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