🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by ABS Wed, 11 Sep 2002 03:27
How common are extensions like XOVER?
#60330
Author: ABS
Date: Wed, 11 Sep 2002 03:27
25 lines
1777 bytes
Hi!

I have to write a gateway to import NNTP messages from a newsserver
into a database.  I don't want to import duplicate messages, so I am
keeping track of all the messageID's i come in contact with in each
group. I'm using Perl and Net::NNTP.

I'd like to try to avoid looping through every article if possible
everytime I download more messages. xhdr and xover look like a great
way to do this by keeping track of the last message number on every
batch processed.

Since I could encounter many different kinds of NewsServers, how
common are commands like xover that aren't mentioned in the RFCs? Is
there a more up todate RFC I need to look at? Or should I just trust
that xover and xhdr are available in all newsservers?

Any constructive advice would be appreciated.

Thanks

-- ABS


Re: How common are extensions like XOVER?
#60329
Author: itsy bitsy meowbot
Date: Wed, 11 Sep 2002 03:27
12 lines
1566 bytes
ABS wrote:
> Since I could encounter many different kinds of NewsServers, how
> common are commands like xover that aren't mentioned in the RFCs? Is
> there a more up todate RFC I need to look at? Or should I just trust
> that xover and xhdr are available in all newsservers?

XOVER and XHDR are close to universally supported these days.  There is
very little still running that doesn't have XOVER, and I can't even
remember the last time I saw something that didn't have XHDR.

Try RFC 2980 for documentation.
Re: How common are extensions like XOVER?
#60331
Author: Russ Allbery
Date: Wed, 11 Sep 2002 03:27
27 lines
2237 bytes
ABS <avrombay@sville.com> writes:

> I have to write a gateway to import NNTP messages from a newsserver into
> a database.  I don't want to import duplicate messages, so I am keeping
> track of all the messageID's i come in contact with in each group. I'm
> using Perl and Net::NNTP.

> I'd like to try to avoid looping through every article if possible
> everytime I download more messages. xhdr and xover look like a great
> way to do this by keeping track of the last message number on every
> batch processed.

> Since I could encounter many different kinds of NewsServers, how common
> are commands like xover that aren't mentioned in the RFCs? Is there a
> more up todate RFC I need to look at? Or should I just trust that xover
> and xhdr are available in all newsservers?

It depends a lot on what commands you're talking about, but XOVER is
essentially universally implemented.  XHDR is *mostly* there, but with a
lot of variation between servers.  Other stuff like XPAT is a bit rarer.

-- 
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: How common are extensions like XOVER?
#60338
Author: Curt Welch
Date: Wed, 11 Sep 2002 13:42
30 lines
2664 bytes
Russ Allbery <rra@stanford.edu> wrote:
> ABS <avrombay@sville.com> writes:

> > Since I could encounter many different kinds of NewsServers, how common
> > are commands like xover that aren't mentioned in the RFCs? Is there a
> > more up todate RFC I need to look at? Or should I just trust that xover
> > and xhdr are available in all newsservers?
>
> It depends a lot on what commands you're talking about, but XOVER is
> essentially universally implemented.  XHDR is *mostly* there, but with a
> lot of variation between servers.  Other stuff like XPAT is a bit rarer.

The thing to watch out for on XHDR is that many servers only support it
for the headers which are in XOVER.  For your application, that doesn't
sound like a problem, but it's something that can catch people off guard at
times.  The orginal and "correct" implementation of XHDR allowed it to work
for any header, but the Highwind (Typhoon etc) servers started this trend
of only supporting headers which were in their XOVER databse.

If you are trying to right a client which be used by lots of people on lots
of different servers, you should expect to have to add code to deal with
the little differences found from server to server.  But if you are just
trying to write something to work on one or a few servers, and want to make
sure it will "probably" work on other servers, using XOVER and XHDR is
safe.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
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