🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Bas Ruiter Thu, 24 Oct 2002 10:39
What's the layout of the XOVER response?
#61614
Author: Bas Ruiter
Date: Thu, 24 Oct 2002 10:39
45 lines
2373 bytes
A couple of questions regarding the response to an XOVER:


1. Which headers are always present? The usual obligatory 6?
   May there be more (depending on what server)?

2. I noticed that per article, the headers + info are all on
one line. Are the headers ALWAYS in the same order?

3. The XOVER seems to return info like this:

<article #> <Subject> <From> <Date> <Msg-ID> <Lines> <???> <Xref>

Whitespace seems to be TAB.

Being able to parse this line, it seems that it relies on:

 a. a correct e-mail address being present (a@b.c),
 b. that no whitespace or @ appears in the Subject:

otherwise it's going to be difficult to where the Subject ends.

What's the <???> above?


Example XOVER line I recieved:

28327760	req by nobody - here u go::: - Kansas - The Ultimate
Kansas - 111 - What's on my Mind.mp3 (04/12)	"-<madman>-"
mester@NO_SPAMeasynews.com	Wed, 23 Oct 2002 23:30:02 GMT
<d3cerugtus5qvsc8u0703hq8q1vibkviep@4ax.com>		631526	10007
Xref: newshub1.nl.home.com alt.binaries.sounds.mp3.complete_cd:17458829
alt.binaries.sounds.mp3:28327760


 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: What's the layout of the XOVER response?
#61615
Author: Jeffrey M. Vinocur
Date: Thu, 24 Oct 2002 11:25
57 lines
2378 bytes
In article <sjifru0p9sgelhr6qnnmm5f1gvmu49cua1@4ax.com>,
Bas Ruiter  <lordsnow@home.nl> wrote:
>
>1. Which headers are always present? The usual obligatory 6?
>   May there be more (depending on what server)?

You can rely on these being present.  Any others will be :full,
which means that (like Xref) they will have the name of the
header before the data.

              Subject:
              From:
              Date:
              Message-ID:
              References:
              Bytes:
              Lines:
              Xref:full


>2. I noticed that per article, the headers + info are all on
>one line. Are the headers ALWAYS in the same order?

The initial ones are.  Others added can be in any order


><article #> <Subject> <From> <Date> <Msg-ID> <Lines> <???> <Xref>
>
>Whitespace seems to be TAB.

Delimiter is tab.  Other whitespace is part of whatever field it
belongs to (spaces are to be expected in Subject, From, Date,
References, and Xref).


> a. a correct e-mail address being present (a@b.c),

Not required.


> b. that no whitespace or @ appears in the Subject:
>

Not required.


>What's the <???> above?

You've got them out of order (Bytes, then Lines), and you forgot
about References.  (Visible as two tabs with nothing between them
if there is no References header.)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: What's the layout of the XOVER response?
#61618
Author: Ken Murchison
Date: Thu, 24 Oct 2002 15:04
17 lines
1538 bytes

Bas Ruiter wrote:
> 
> A couple of questions regarding the response to an XOVER:

Take a look at:

http://www.ietf.org/rfc/rfc2980.txt
http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-base-15.txt

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp
Re: What's the layout of the XOVER response?
#61619
Author: Curt Welch
Date: Thu, 24 Oct 2002 15:32
48 lines
2979 bytes
Bas Ruiter <lordsnow@home.nl> wrote:
> 3. The XOVER seems to return info like this:
>
> <article #> <Subject> <From> <Date> <Msg-ID> <Lines> <???> <Xref>

check out the NNTP command LIST OVERVIEW.FMT

> Whitespace seems to be TAB.
>
> Being able to parse this line, it seems that it relies on:
>
>  a. a correct e-mail address being present (a@b.c),
>  b. that no whitespace or @ appears in the Subject:

Tabs and CR LF (for multiline headers) in the data are turned into spaces
to guarantee that parsing is easy.  You just extract the data between the
tabs.

> otherwise it's going to be difficult to where the Subject ends.
>
> What's the <???> above?

it's <bytes> and <lines>, so that article is 631526 bytes and 10007 lines.
The lines only count body lines and does not count the blank line between
the header and the body whereas the bytes normally cover the entier
article. However, it's undefined what form the article is in (i.e. do lines
end with 2 bytes CR LF, or 1 LF, is the article dot escaped or not).  The
lines value is sometimes correct and sometimes just the Lines: header from
the article which is many times not correct.  In other words, bytes and
lines are only hints for the user to use and not something that should ever
be assumed to be accurate enough to help the software read or store
articles.

> Example XOVER line I recieved:
>
> 28327760        req by nobody - here u go::: - Kansas - The Ultimate
> Kansas - 111 - What's on my Mind.mp3 (04/12)    "-<madman>-"
> mester@NO_SPAMeasynews.com      Wed, 23 Oct 2002 23:30:02 GMT
> <d3cerugtus5qvsc8u0703hq8q1vibkviep@4ax.com>            631526  10007
> Xref: newshub1.nl.home.com alt.binaries.sounds.mp3.complete_cd:17458829
> alt.binaries.sounds.mp3:28327760
>
>  Bas Ruiter

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: What's the layout of the XOVER response?
#61626
Author: Bas Ruiter
Date: Fri, 25 Oct 2002 01:13
28 lines
1803 bytes
> http://www.ietf.org/rfc/rfc2980.txt

This one mentions XOVER (but not OVER)

> http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-base-15.txt

This one mentions OVER (but not XOVER)

so, my next question is: is OVER the same as XOVER? It looks
as if it is.

When I telnet into @home's newsserver, and do a HELP it
does list XOVER as a valid command, but not OVER. Do all
servers support XOVER, and not OVER? Or the other way
around? Or do they sometimes support both?



 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: What's the layout of the XOVER response?
#61628
Author: Bas Ruiter
Date: Fri, 25 Oct 2002 01:21
50 lines
2441 bytes
>               Bytes:

This is generated by the server?

Gawd.. and I thought that News Agent authors always calculated/estimated
the size of attachements by using Lines: and multiplying that number by
the average line length of whatever encoding is used.


> You can rely on these being present.  Any others will be :full,
> which means that (like Xref) they will have the name of the
> header before the data.

I also noticed that some lines returned from XOVER looked like this:

<article #> [STAT] <subject> ...

Is [STAT] part of the subject, or does it mean something?

> >Whitespace seems to be TAB.
> 
> Delimiter is tab.

Delimiter was the word I meant. :)

> Other whitespace is part of whatever field it belongs to

Yes, I noticed that.

> ... and you forgot about References. (Visible as two tabs with
> nothing between them if there is no References header.)

I XOVER'ed an mp3 group.. I guess most of those don't have a Reference:
header, so that's why I didn't notice it.



Thanks for the help


 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: What's the layout of the XOVER response?
#61627
Author: Jeffrey M. Vinocur
Date: Fri, 25 Oct 2002 01:34
32 lines
1791 bytes
In article <sl6hru0ldtfb6smgjjtidvts82lfvka2dk@4ax.com>,
Bas Ruiter  <lordsnow@home.nl> wrote:
>
>>               Bytes:
>
>This is generated by the server?

Yes, but as mentioned elsethread, you should only use it as a
guide.


>I also noticed that some lines returned from XOVER looked like this:
>
><article #> [STAT] <subject> ...
>
>Is [STAT] part of the subject, or does it mean something?

Where are the tabs?  Split on tabs, and whatever is between the
tabs is the contents of the field regardless of what it looks
like.


>I XOVER'ed an mp3 group.. I guess most of those don't have a Reference:
>header, so that's why I didn't notice it.

That'd do it.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: What's the layout of the XOVER response?
#61629
Author: Curt Welch
Date: Fri, 25 Oct 2002 01:38
39 lines
2841 bytes
Bas Ruiter <lordsnow@home.nl> wrote:
> > http://www.ietf.org/rfc/rfc2980.txt
>
> This one mentions XOVER (but not OVER)
>
> > http://www.oceana.com/ftp/drafts/draft-ietf-nntpext-base-15.txt
>
> This one mentions OVER (but not XOVER)
>
> so, my next question is: is OVER the same as XOVER? It looks
> as if it is.
>
> When I telnet into @home's newsserver, and do a HELP it
> does list XOVER as a valid command, but not OVER. Do all
> servers support XOVER, and not OVER? Or the other way
> around? Or do they sometimes support both?

"OVER" is just an attempt to remove XOVER from the ranks of non-standard
headers.  All non-standard headers must begin with X which is why XOVER is
called XOVER and not OVER or OVERVIEW in the first place.

OVER is exactly the same as XOVER and any server that supports OVER would
be crazy not to support XOVER so it's crazy for any client to ever try to
use OVER since XOVER will always work so it was crazy to document OVER in
the first place.  The _only_ correct way to fix the "XOVER" problem was to
remove the stupid X-rule from the standard and document XOVER as _the_
standard.

But, for how it is now, anyone who creats a new server should make both
OVER and XOVER do the same thing and anyone writing a client should just
use XOVER or if they don't give a shit, or use XOVER and fall back to
trying OVER if they want to cover all bases, or if they think the RFCs are
"the bible" use OVER, and fall back to XOVER when that fails after spitting
out a message to the user that he his using a non-complient server.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: What's the layout of the XOVER response?
#61630
Author: Curt Welch
Date: Fri, 25 Oct 2002 01:43
27 lines
1937 bytes
Bas Ruiter <lordsnow@home.nl> wrote:
> I also noticed that some lines returned from XOVER looked like this:
>
> <article #> [STAT] <subject> ...
>
> Is [STAT] part of the subject, or does it mean something?

I've never seen that so I assume it was part of the subject.  But that
depends on where the TAB is.  If the line was:

123456<tab>[STAT] more subject

then it was part of the subject.

But if the line was:

123456 [STAT]<tab>Subject

Then it was part of the article number and was something strange the server
you were looking at was doing.

Most likely, it was just part of the subject.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: What's the layout of the XOVER response?
#61632
Author: Jeffrey M. Vinocur
Date: Fri, 25 Oct 2002 01:44
16 lines
1494 bytes
In article <l26hrucdt3i72dav0h67uha4l9iv7saccc@4ax.com>,
Bas Ruiter  <lordsnow@home.nl> wrote:
>
>so, my next question is: is OVER the same as XOVER? It looks
>as if it is.

All commands starting with X are extensions.  And therefore can't
be standardized.  So XOVER is what's currently widely
implemented; but when the standard is published it will formalize
the command as OVER.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: What's the layout of the XOVER response?
#61631
Author: Bas Ruiter
Date: Fri, 25 Oct 2002 02:03
34 lines
2371 bytes
> "OVER" is just an attempt to remove XOVER from the ranks of non-standard
> headers.  All non-standard headers must begin with X which is why XOVER is
> called XOVER and not OVER or OVERVIEW in the first place.

I thought non-standard headers started with "X-" ?
Like X-Newsreader:, X-Face, etc.

> The _only_ correct way to fix the "XOVER" problem was to
> remove the stupid X-rule from the standard and document XOVER as _the_
> standard.
> 
> But, for how it is now, anyone who creats a new server should make both
> OVER and XOVER do the same thing and anyone writing a client should just
> use XOVER or if they don't give a shit, or use XOVER and fall back to
> trying OVER if they want to cover all bases, or if they think the RFCs are
> "the bible" use OVER, and fall back to XOVER when that fails after spitting
> out a message to the user that he his using a non-complient server.

Do I detect a little aggro here? :P


Anyways.. thanks again Curt, and Jeffrey too, for clearing that up.


 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: What's the layout of the XOVER response?
#61633
Author: Klaas
Date: Fri, 25 Oct 2002 02:12
16 lines
1802 bytes
After careful consideration, Bas Ruiter muttered:

> 
>> "OVER" is just an attempt to remove XOVER from the ranks of
>> non-standard headers.  All non-standard headers must begin with X
>> which is why XOVER is called XOVER and not OVER or OVERVIEW in the
>> first place. 
> 
> I thought non-standard headers started with "X-" ?
> Like X-Newsreader:, X-Face, etc.

He meant nntp commands.  Although, the statement that All non-standard 
headers must begin with X is not false.

-Mike
Re: What's the layout of the XOVER response?
#61636
Author: Curt Welch
Date: Fri, 25 Oct 2002 04:42
21 lines
2061 bytes
Klaas <spamhole@klaas.ca> wrote:
> After careful consideration, Bas Ruiter muttered:
>
> >
> >> "OVER" is just an attempt to remove XOVER from the ranks of
> >> non-standard headers.  All non-standard headers must begin with X
> >> which is why XOVER is called XOVER and not OVER or OVERVIEW in the
> >> first place.
> >
> > I thought non-standard headers started with "X-" ?
> > Like X-Newsreader:, X-Face, etc.
>
> He meant nntp commands.  Although, the statement that All non-standard
> headers must begin with X is not false.

Right, it was just a brain fart.  I meant "NNTP commands", not "headers".

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: What's the layout of the XOVER response?
#61634
Author: Bas Ruiter
Date: Fri, 25 Oct 2002 06:52
23 lines
1972 bytes
> > I thought non-standard headers started with "X-" ?
> > Like X-Newsreader:, X-Face, etc.

> He meant nntp commands.  Although, the statement that All non-standard 
> headers must begin with X is not false.

Of course. I'm just being a fuzz-brain again and mixing things up.

I'll blame it on the fact I haven't slept last nite & looks like
a no-go for tonite as well :)

Cheers.


 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