🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
104 messages
104 total messages Page 2 of 3 Started by Russ Allbery Tue, 01 Apr 2003 00:08
Page 2 of 3 • 104 total messages
Re: Standardization of LIST OVERVIEW.FMT
#64690
Author: Jeffrey M. Vinocur
Date: Wed, 02 Apr 2003 17:31
18 lines
1625 bytes
In article <slrnb8ku8f.lo4.andrew+nonews@trinity.supernews.net>,
Andrew - Supernews  <andrew@supernews.com> wrote:
>
>it actually turns out to be fairly important for overviews to be consistent
>between servers as much as possible; we found that out when we had a bug
>that caused ours not to match other people's, and we got user complaints
>about it.

Really?  What exactly what were they complaining about?

(Oh -- perhaps that multipart matching relies on Subject
similarity?)


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Standardization of LIST OVERVIEW.FMT
#64692
Author: Andrew - Supernews
Date: Wed, 02 Apr 2003 17:35
21 lines
1889 bytes
In article <b6f6pj$gvg$2@puck.litech.org>, Jeffrey M. Vinocur wrote:
> In article <slrnb8ku8f.lo4.andrew+nonews@trinity.supernews.net>,
> Andrew - Supernews  <andrew@supernews.com> wrote:
>>it actually turns out to be fairly important for overviews to be consistent
>>between servers as much as possible; we found that out when we had a bug
>>that caused ours not to match other people's, and we got user complaints
>>about it.
> 
> Really?  What exactly what were they complaining about?
> 
> (Oh -- perhaps that multipart matching relies on Subject
> similarity?)

exactly - the complaints were that multi-server clients were failing to
combine parts between our server and others due to the mismatch in Subject
lines in overview.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Standardization of LIST OVERVIEW.FMT
#64693
Author: Jeffrey M. Vinocur
Date: Wed, 02 Apr 2003 17:49
26 lines
1897 bytes
In article <PM0003BA4C35B1EDA6@minion.nashville.comcast.net>,
J�hnny F�v�r�t� (it means "genetic antagonism")  <this.is@fake.com> wrote:
>Jeffrey M. Vinocur wrote:
>> That's the entire purpose of this thread!  It's just that most
>> newsreader authors don't seem to be around :-/
>
>Dude.  Right here.

(Yay!)


>I haven't said anything because, well, what would I add?  I wasn't aware
>that LIST OVERVIEW.FMT even *exists*, much less that it's about to be
>standardized.  I use XOVER data to pre-emptively apply my killfile and
>that's about it.

But that's exactly the sort of datapoint we're looking for, you
see.  So please, speak up anyway (Russ mentioned he'd take
responses by email if you're worried about clutter in the group).



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Standardization of LIST OVERVIEW.FMT
#64695
Author: Russ Allbery
Date: Wed, 02 Apr 2003 17:54
50 lines
3146 bytes
Colin Wilson <colin@wilsonc.demon.co.uk> writes:

> Surely the 'lines' in XOVER *must* be the same as the 'lines' in the
> header.

No, I believe that many servers implement it that way, but I believe
others implement it the same way that 'bytes' in XOVER is implemented,
which has nothing to do with any header called "Bytes" (there generally
isn't any such header).  The latter behavior makes more sense given how
worthless and inaccurate the Lines headers in articles are in practice, so
that's what we're standardizing.

> My understanding is that XOVER is meant to return an overview of the
> most important headers.  It doesn't make any sense that they are allowed
> to differ.

What about bytes?

> Am I correct in thinking that under you proposal the two would differ
> only if the posting agent had included a 'lines' header that was
> incorrect?

Or if it wasn't included at all.  Note that the header is inaccurate more
than 10% of the time from the last statistics I remember.

> If so, wouldn't it be better for the server to drop the incorrect header
> and substitute a correct one.

Transit servers should not modify any headers other than Path and Xref.
Lines used to also be in that category, but USEFOR is dropping Lines from
the standard because of how inaccurate and unreliable it is, and reducing
the number of headers that a transit server changes is an all-around good
thing.

> I know this goes against the tenet that the original headers are
> sacrosanct - but when they are clearly wrong?...

We don't fix other headers that are clearly wrong.  :)

> Should 'lines' be dropped?

You can't drop it from the overview data without breaking a lot of things.
I do believe the header by that name should be dropped, though.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64696
Author: Russ Allbery
Date: Wed, 02 Apr 2003 17:57
15 lines
1886 bytes
Ken Murchison <ken@oceana.com> writes:

> Will clients break or complain if :lines / Lines: is left empty in the
> OVER / XOVER output?

They shouldn't; the original C News newsoverview man page explicitly said
that it could be empty.  (Note that the new NNTP draft does not allow for
this.  Maybe it should?)

-- 
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: Standardization of LIST OVERVIEW.FMT
#64697
Author: Russ Allbery
Date: Wed, 02 Apr 2003 17:58
26 lines
2592 bytes
Marcus M�nnig <usenet-mar03@40tude.com> writes:
> Andrew - Supernews wrote:

>> but in practice they are close enough that there is no reason to
>> implement them differently. If the server's existing XOVER
>> implementation happens to match the OVER spec, no problem; if not, it's
>> just as reasonable (at present, and for most servers) to change the
>> XOVER implementation rather than have a separate one for OVER.

> Oh come on... Being a client programmer I'd say that a server programmer
> acting like this would be lazy, not caring about transition periods and
> compatibility at all and wait to have his server fixed on the client
> side.

What compatibility problems?  What exactly will changing XOVER to match
the OVER specification break?

That's what I'm going to do with INN because I can't think of a single
problem that could be caused.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64698
Author: Russ Allbery
Date: Wed, 02 Apr 2003 17:58
16 lines
2046 bytes
Marcus M�nnig <usenet-mar03@40tude.com> writes:

> The Lines header in the full message is of course a complete different
> issue. I really think that you are taking away potential functionality
> here, e.g. with filters that work on raw message data.

Given that the Lines header lies, why would you want to use it in a
filter?  If you're working on raw message data, you already have the
message and can count the lines yourself.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64699
Author: Russ Allbery
Date: Wed, 02 Apr 2003 18:01
25 lines
2105 bytes
Juergen Helbing <archiver@i3w.com> writes:

> If the target of a new RFC for NNTP is to describe "current practice"
> then you are right: Nobody uses MIME for posting today - and nobody
> would ever see a need to do it in the future (next decade) ......

Once again, this message, and every other message that I've posted to
Usenet for years, is a MIME message.

> New NNTP preventing MIME finally for being widely used.....   ROTFL !

What makes you think MIME is not widely used?  12% of the articles in this
newsgroup over the past three weeks are MIME messages.  You'll find
similar or higher numbers in other newsgroups.  That certainly looks like
widespread use to me.

One of these days, I'm going to get you to distinguish between MIME and
base64 encoding.  :)

-- 
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: Standardization of LIST OVERVIEW.FMT
#64700
Author: Marcus Mönnig
Date: Wed, 02 Apr 2003 18:29
30 lines
2949 bytes
Russ Allbery wrote in <ylu1dglr2t.fsf@windlord.stanford.edu>:

>>> If the server's existing XOVER
>>> implementation happens to match the OVER spec, no problem; if not, it's
>>> just as reasonable (at present, and for most servers) to change the
>>> XOVER implementation rather than have a separate one for OVER.
> 
>> Oh come on... Being a client programmer I'd say that a server programmer
>> acting like this would be lazy, not caring about transition periods and
>> compatibility at all and wait to have his server fixed on the client
>> side.
> 
> What compatibility problems?  

My answer was referring to the "if not" part of Andrew's post and if the 
XOVER spec does not match the OVER spec there might be compatibility 
problems. 

> That's what I'm going to do with INN because I can't think of a single
> problem that could be caused.

Right. With the current draft I neither see a problem, but I thought we 
were discussing which fields should be included with OVER. But maybe that 
was just what I wished. :-)

Marcus
-- 
"If mathematicians wanted to write lots of things down, they'd be
english	majors."  			-- Prof. Janet Talvacchia
Re: Standardization of LIST OVERVIEW.FMT
#64702
Author: Russ Allbery
Date: Wed, 02 Apr 2003 18:40
43 lines
3518 bytes
Marcus M�nnig <usenet-mar03@40tude.com> writes:
> Russ Allbery wrote:

>> What compatibility problems?  

> My answer was referring to the "if not" part of Andrew's post and if the
> XOVER spec does not match the OVER spec there might be compatibility
> problems.

Yeah, and INN's doesn't.  The header transform is different, and it uses
the Lines header of articles.

>> That's what I'm going to do with INN because I can't think of a single
>> problem that could be caused.

> Right. With the current draft I neither see a problem, but I thought we
> were discussing which fields should be included with OVER. But maybe
> that was just what I wished. :-)

Oh, okay.  No, we weren't really discussing that.  I don't think there's
much chance of changing how that part works; it'll continue to be the same
as it is now (the basic fields plus whatever additional fields each
individual server wants to add, generally including Xref).

BTW, I know a lot of people here are saying that there's no reason to ever
put anything into overview besides the basic fields plus Xref, but I think
you all are neglecting private servers and personal servers.  That's
generally true for large news servers run by ISPs, but for example INN has
optional code to synthesize keywords from an article and stick that in the
overview database, and I know that some people add additional headers like
Newsgroups to their local overview database and take advantage of that
with their own local clients.

NNTP can also be used for applications other than Usenet.  I personally
use NNTP as a trouble ticketing system, for example.  Some of those other
applications can take advantage of additional fields in overview.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64703
Author: Graham Drabble
Date: Wed, 02 Apr 2003 19:01
30 lines
2797 bytes
On 02 Apr 2003 Andrew - Supernews <andrew+nonews@supernews.com>
wrote in news:slrnb8m5f2.lo4.andrew+nonews@trinity.supernews.net: 

> In article
> <Xns9351B64AA9563grahamdrabblelineone@ID-77355.user.dfncis.de>, 
> Graham Drabble wrote:
>>> Xref is in the overview rather than Newsgroups because Xref has
>>> the article number info for crosspost management. So, Xref is
>>> used for filtering because it's in the overview and Newsgroups
>>> is not. 
>> 
>> I don't get why that's important and why you can't use the
>> Message-ID for it.
> 
> clients usually track what's been read by article number, since a
> range of numbers can be easily condensed. Doing the same by
> message-id would require an unreasonably large database.

Right I think I understand that now. I still think that either 
Newsgroups in XOVER or your extended XRef would be a good idea for 
cross-post filtering though. I personally it far more useful to be 
able to score out posts with lots of cross-posts or crossposted to 
certain groups than to only have to read each copy once, YMMV.

-- 
Graham Drabble
If you're interested in what goes on in other groups or want to find 
an interesting group to read then check news.groups.reviews for what 
others have to say or contribute a review for others to read.
Re: Standardization of LIST OVERVIEW.FMT
#64704
Author: Ken Murchison
Date: Wed, 02 Apr 2003 19:43
23 lines
2085 bytes

Russ Allbery wrote:
> 
> Ken Murchison <ken@oceana.com> writes:
> 
> > Will clients break or complain if :lines / Lines: is left empty in the
> > OVER / XOVER output?
> 
> They shouldn't; the original C News newsoverview man page explicitly said
> that it could be empty.  (Note that the new NNTP draft does not allow for
> this.  Maybe it should?)

As I read the current sections 10.4.2 and 10.5.1.2, it appears to me
that the :lines field MAY be left empty, but if it not empty, it MUST be
the number of lines in the body.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64705
Author: Russ Allbery
Date: Wed, 02 Apr 2003 20:11
19 lines
2106 bytes
Ken Murchison <ken@oceana.com> writes:
> Russ Allbery wrote:

>> They shouldn't; the original C News newsoverview man page explicitly
>> said that it could be empty.  (Note that the new NNTP draft does not
>> allow for this.  Maybe it should?)

> As I read the current sections 10.4.2 and 10.5.1.2, it appears to me
> that the :lines field MAY be left empty, but if it not empty, it MUST be
> the number of lines in the body.

Ah, okay, I stand corrected.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64706
Author: greg andruk
Date: Wed, 02 Apr 2003 21:34
7 lines
2107 bytes
Ken Murchison <ken@oceana.com> writes:
> Will clients break or complain if :lines / Lines: is left empty in the
> OVER / XOVER output?

I doubt it.  The C News implementation routinely left this field blank
unless the client or some intermediate server supplied one.
Re: Standardization of LIST OVERVIEW.FMT
#64707
Author: Miquel van Smoorenburg
Date: Wed, 02 Apr 2003 22:39
29 lines
2524 bytes
In article <0325f.243204@archiver.winews.net>,
Juergen Helbing <archiver@i3w.com> wrote:
>"Colin Wilson" <colin@wilsonc.demon.co.uk> wrote:
>
>>Surely the 'lines' in XOVER *must* be the same as the 'lines' in the
>>header.  My understanding is that XOVER is meant to return an overview
>>of the most important headers.  It doesn't make any sense that they are
>>allowed to differ.
>
>The new NNTP draft wants to redefine the 'Lines' in OVER:
>Rather than being an exact copy of the Lines: header it would
>then be a server-side calculated value (same as size in bytes).

But Lines in the header might mean actual lines in the decoded
article if the article is encoded in some way - base64 because
it is a MIME message and contains high ascii, or HTML .. so
that client-provided header might be useful to show how big
a message is to human eyes, and that might bear no relation to
the number of lines (CR/LF pairs) in the raw article.

So putting the number of lines (CR/LF pairs) in the overview
serves no purpose at all. OTOH, putting the number of bytes in
the overview data is very useful. As would be Content-Type.

Mike.
-- 
Anyone who is capable of getting themselves made President should
on no account be allowed to do the job -- Douglas Adams.
Re: Standardization of LIST OVERVIEW.FMT
#64708
Author: Russ Allbery
Date: Wed, 02 Apr 2003 22:44
29 lines
2376 bytes
Miquel van Smoorenburg <miquels@cistron-office.nl> writes:

> So putting the number of lines (CR/LF pairs) in the overview serves no
> purpose at all.

My experience is that when people think of ways to avoid downloading long
posts, they normally tend to think of "long" in terms of lines rather than
bytes.  But I also think it's somewhat irrelevant at this point whether it
serves a purpose, as omitting it would be a larger change than it would be
worth.

> OTOH, putting the number of bytes in the overview data is very useful.
> As would be Content-Type.

Content-Type isn't nearly as useful as it sounds like it would be on first
glance.  The value of Content-Type in overview for almost every article
other than plain text would just be multipart/mixed, which really doesn't
tell you anything very useful.

Getting the article structure without downloading the article would be
very useful, but putting Content-Type into overview doesn't give you that.
You need something more like IMAP.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64709
Author: Curt Welch
Date: Wed, 02 Apr 2003 23:05
44 lines
3465 bytes
Marcus_M�nnig <usenet-mar03@40tude.com> wrote:
> I agree, Content-Type might not be the best field to include., but after
> all I only stated I would like to see this discussed. :-)
>
> What about Content-Disposition?

I don't think any of the MIME headers have any place in OVER or XOVER.
There are just too many of them to make any by themself useful.  You need
the entire MIME article to get anything really useful out of it, not just a
header or two.

There would be value in knowing "content" information about usenet articles
and putting it into xover, so by looking at xover you could know if the
article was a simple text article (text/plain) vs a complex MIME structured
article, vs a single file of type XYZ vs a segment of a file of type XYZ,
but there really isn't a single header that tells us this.  So you would
have to create an entire new posting standard first and then define the
header.  Or you could simply define a new xover field which was based on
the article, but the complexity of that project is way outside the scope of
the NNTP RFC work so I see no reasonable way to make any of that happen
now.

I think the better long term approach to the xover problem is to push for
the addition of a generic nntp command (HEADERS) to allow clients to bulk
download any set of headers they want (and force servers to support the
full article headers).  This gives us the maximum amount of fexibility to
change the article format later (add new headers), and still give
newsreaders the tools they need to bulk download the article header data
they need.  overview.fmt doesn't help the problem because it would force
all admins to add a new header to their xover and nobody would want to do
that because it forces all the users to download the extra header even
though only a very small percentage of the users would want it.  This would
prevent xover format change from ever happening.

If the servers supported bulk download of any combination of new headers,
then change would be much easier to support.

The other approach to the binary "content" problem is the xBin approach
which tries to solve most of it with no NNTP/server changes.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64711
Author: Curt Welch
Date: Wed, 02 Apr 2003 23:15
24 lines
2420 bytes
miquels@cistron-office.nl (Miquel van Smoorenburg) wrote:
> In article <16x3jqmd6uhze$.dlg@40tude.com>,
> Marcus M�nnig  <usenet-mar03@40tude.com> wrote:
> >Because not everyone is into binaries and byte size is by no means a
> >catchy indicator for the length of a text only posting (yes, they do
> >exists) especially for people not too much into computers.
>
> People not too much into computers will post HTML messages, and in
> that case the Lines: header, if written by the client, might have some
> correlation with the number of lines in the text, but the /real/ number
> of lines (CR/LF pairs) which is proposed to go into overview doesn't.

The Lines: header is very well defined and has never been in question.  An
HTML posting tool which adds a Lines: header that tries to reflect the
number of text lines and not the number of CR/LF paris in the article is
broken and should be thrown into the trash.  It has _never_ been correct
for any server or client to put a Lines: header on a post which was
anything other than the count of CR LF pairs.  This has never been in
question.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64710
Author: Curt Welch
Date: Wed, 02 Apr 2003 23:30
44 lines
3768 bytes
Marcus_M�nnig <usenet-mar03@40tude.com> wrote:
> Andrew - Supernews wrote in
> <slrnb8m38n.lo4.andrew+nonews@trinity.supernews.net>:
>
> > but in practice they are close enough that there is no reason to
> > implement them differently. If the server's existing XOVER
> > implementation happens to match the OVER spec, no problem; if not, it's
> > just as reasonable (at present, and for most servers) to change the
> > XOVER implementation rather than have a separate one for OVER.
>
> Oh come on... Being a client programmer I'd say that a server programmer
> acting like this would be lazy, not caring about transition periods and
> compatibility at all and wait to have his server fixed on the client
> side.

I haven't read the new standard, but what I'm fairly sure is happening here
is that OVER will be well defined to remove the current cross-server
compatibility issues that exist with XOVER.

For example, with XOVER, it's not well defined how a Subject is reformated
for use in XOVER, so even though you have the exact same article on two
different srvers, the XOVER Subject field canbe different (one may have
more spaces than the other for example).  Likewise for Lines:.  The exact
same article on two different servers will have a different Lines: value
because some servers simply show the header in XOVER output (including
leaving it blank if the article doesn't have a Lines: header), and other
servers already show the "true" size of the article regardless of the value
of the Lines: header from the article.

These and other inconsistencies causes real world problems with news
clients that are able to pull articles from multiple servers.  So we need
to standerdize how it works.

OVER is the new standard.  But, from what I'm hearing, it's still a subset
of what clinets can expect XOVER to do now.  So, once you change your
server so it can produce industry standard XOVER output with the OVER
command, it would not be "lazy" for the programmer to leave XOVER using the
old non-standard XOVER output, it would be stupid of the programmer to do
that.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64712
Author: Curt Welch
Date: Wed, 02 Apr 2003 23:54
58 lines
3559 bytes
Russ Allbery <rra@stanford.edu> wrote:
> No, I believe that many servers implement it that way, but I believe
> others implement it the same way that 'bytes' in XOVER is implemented,
> which has nothing to do with any header called "Bytes" (there generally
> isn't any such header).

Just as a referece, my reader box changes (or adds) the Lines: header so
it's correct for all articles.  The XOVER is always correct and always
matches the article for articles read from my server.  My transit servers
don't touch the header.

> The latter behavior makes more sense given how
> worthless and inaccurate the Lines headers in articles are in practice,
> so that's what we're standardizing.

Just to throw out some stats from my server for recent real articles:

 with Bad lines:   4883986 (10.1%)
with Good lines:  42945677 (88.9%)
with No   lines:    486824 (1.01%)

This means that 89% of all articles on Usenet have valid Lines: headers.

And for the articles with an invalid value in the Lines: header, this
partial table shows the percent of articles with the given error in the
Lines: value:

   -5     21908    0.4   4278668   87.6
   -4      3691    0.1   4256760   87.2
   -3      3541    0.1   4253069   87.1
   -2     11183    0.2   4249528   87.0
   -1   4238345   86.8   4238345   86.8
-----  --------  -----  --------  -----
    1     35482    0.7     35482    0.7
    2      8998    0.2     44480    0.9
    3      5242    0.1     49722    1.0
    4      4262    0.1     53984    1.1
    5      3223    0.1     57207    1.2
    6      3671    0.1     60878    1.2

Or, 86.8% of articles with an invalid Lines: value has a value that is 1
less than it should be.  So, 88.9% + 10.1*.868 is 97.7% of usenet articles
have a Lines: header which is either correct, or only 1 less than it should
be.

The header really isn't all that bad.

> Or if it wasn't included at all.  Note that the header is inaccurate more
> than 10% of the time from the last statistics I remember.

Yeah, 10.1% from my above stats, but most of that is only an off by -1
error.  The number of articles with truely bogus Lines: values is closer to
1.3%.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64713
Author: Curt Welch
Date: Thu, 03 Apr 2003 00:10
12 lines
1722 bytes
miquels@cistron-office.nl (Miquel van Smoorenburg) wrote:
> But Lines in the header might mean actual lines in the decoded
> article if the article is encoded in some way

No, that has never been valid even if it has been done.  Lines: has _never_
meant the number of lines of the message as it is displayed on some client.
It has _always_ been defined as the number of CR LF pairs in the article.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64716
Author: Curt Welch
Date: Thu, 03 Apr 2003 02:08
35 lines
2652 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:

> >Yeah, my server transforms multiple spaces down to a single space in
> >XOVER content just because it seemed like a resonable thing to do.  And
> >for single-server newsreaders, it probably is a reasonable thing to do.
> >But for multiple-server newsreaders that are trying to match subjects
> >acrosss servers using only XOVER data, this can cause issues.  You
> >really want the transformation preciscely specified.
>
> Actually, as long as we're clear (and I don't know that we are)
> that some transformation is being done and the headers of the
> actual article ought to be used for things like generating
> Subject lines in followups, I'm not so worried about the exact
> transformation.

That's not where the real problems show up.  It's when a binary download
tool is trying to match up multipart posts across multiple servers but
failes because the xover subjects are different.  i.e., they think

   movie.avi   (01/10)

is not part of the same post as:

   movie.avi (02/10)

So they fail to match them up.

These tools can not use the real headers, they must use the xover data.
How the subject is transformed is not even important, it's just important
that all servers do it the same way so the subjects will be the same.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64717
Author: Curt Welch
Date: Thu, 03 Apr 2003 02:24
28 lines
2410 bytes
Russ Allbery <rra@stanford.edu> wrote:
> FYI, here's what the transformation is specified as currently:
>
>    For all fields, the value is processed by first removing all US-ASCII
>    CRLF pairs and then replacing each remaining US-ASCII NUL, TAB, CR,
>    or LF character with a single US-ASCII space (for example, CR LF LF
>    TAB will become two spaces).
>
> We went back and forth on the exact transformation quite a bit, and
> agreed on this one even though there wasn't a clear winner among existing
> practice because it most closely matches the intended semantics of folded
> header fields per RFC 2822.

I'd have to look at 2822 to get a feel for those semantics, but I think
that would work fine in practice.

Do you make it clear where the "value" starts and ends?  i.e. what about a
Subject: with two or more spaces after the : or one with 0 spaces after the
:?

Is there any potential confusion about how to handle trailing spaces?
i.e., will some header parsers tend to strip them off because of the way
some other RFC was written?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64719
Author: Russ Allbery
Date: Thu, 03 Apr 2003 02:34
27 lines
2296 bytes
Curt Welch <curt@kcwc.com> writes:

> Do you make it clear where the "value" starts and ends?  i.e. what about a
> Subject: with two or more spaces after the : or one with 0 spaces after the
> :?

Clive is adding a new section that makes that sort of thing clearer, but
we're going to require a space after the colon, I believe, and then define
that single space to not be part of the header value and everything after
that to be part of the header value.

There are a bunch of other bits of the NNTP standard that require the
space after the colon, and RFC 1036 is very clear about it, so although
mail doesn't require it, I think requiring it is the best way to go.

> Is there any potential confusion about how to handle trailing spaces?
> i.e., will some header parsers tend to strip them off because of the way
> some other RFC was written?

Not so far as I know.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64718
Author: Curt Welch
Date: Thu, 03 Apr 2003 03:04
33 lines
2538 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
>
> > Do you make it clear where the "value" starts and ends?  i.e. what
> > about a Subject: with two or more spaces after the : or one with 0
> >   spaces after the
> > :?
>
> Clive is adding a new section that makes that sort of thing clearer, but
> we're going to require a space after the colon,

My server accepts articles feed to it with headers like:

  Subject:a test

I see it also accepts them on post.  That is bad.  I need to fix that.

But, for fed articles, are you implying it should reject them?  Or are you
implying that line in the header should not be parsed as the Subject header
so the article should be treated as if it had no Subject?  My server
retruns "a test" as the Subject of that type of article in the xover right
now.

It would be good if all servers delt with this the same way and just saying
that the "space is required" is not going to make that happen.

Maybe enough servers already reject articles like that so this is a
non-issue???

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64720
Author: Russ Allbery
Date: Thu, 03 Apr 2003 03:10
42 lines
2782 bytes
Curt Welch <curt@kcwc.com> writes:

> My server accepts articles feed to it with headers like:

>   Subject:a test

> I see it also accepts them on post.  That is bad.  I need to fix that.

Interesting.  I didn't think any NNTP software would accept that.

> But, for fed articles, are you implying it should reject them?

Well, the problem is that such articles don't comply with RFC 1036 in a
pretty fundamental syntactic way, so they may confuse readers horribly
when sent to a client.  NNTP doesn't really say that you can't accept
them, but when you send such a thing back in response to an ARTICLE
command, you're not sending back a news article, which is sort of iffy.

> Or are you implying that line in the header should not be parsed as the
> Subject header so the article should be treated as if it had no Subject?

No, the article itself is syntactically invalid.

> My server retruns "a test" as the Subject of that type of article in the
> xover right now.

That's a very reasonable thing to do, yes.

> It would be good if all servers delt with this the same way and just
> saying that the "space is required" is not going to make that happen.

> Maybe enough servers already reject articles like that so this is a
> non-issue???

INN always has.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64721
Author: Curt Welch
Date: Thu, 03 Apr 2003 03:52
83 lines
5313 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
>
> > My server accepts articles feed to it with headers like:
>
> >   Subject:a test
>
> > I see it also accepts them on post.  That is bad.  I need to fix that.
>
> Interesting.  I didn't think any NNTP software would accept that.

Is it because I didn't follow the RFC when I wrote my code or is it because
the RFC wasn't detailed enough about this point I wonder?  I'll have to
re-read the RFCs to get a feel for that, but the way it happened in my code
is that I first wrote a generic article parsing routine which was written
on purpose to accurately parse _any_ byte stream passed to it.  I didn't
want an article like this:

    Subject: test
    O:crap
    From: me

    etc...

To make the parser fail to find the From: header just because the article
has an O:crap line in the header.

> > But, for fed articles, are you implying it should reject them?
>
> Well, the problem is that such articles don't comply with RFC 1036 in a
> pretty fundamental syntactic way, so they may confuse readers horribly
> when sent to a client.  NNTP doesn't really say that you can't accept
> them, but when you send such a thing back in response to an ARTICLE
> command, you're not sending back a news article, which is sort of iffy.

Yeah, at the NNTP level, the problem here is that you can transfer articles
with a header like of "Crap:out" so what should an nntp server do if it
receives an article with a header line like that?  If that is not a valid
header line period, should the entire article always be rejected as totaly
invalid? If, like in the Crap:out example, the header is not important,
should it just be ignored?

Because NNTP specifies how data is transfered, and also specifies how to
deal with headers, it seems to me the NNTP RFC should be _very_ precise on
how the dot terminated data is parsed to find the headers and header data,
and for parse errors, I think it should be _very_ precise about how to
react to a basic parse error (this missing space issue, any line length
issues if there are any limits, any max header size after folding issues,
NULLs, lone CRs and LFs) in regards to the header parsing algorithm.

For the missing space issue, I think the RFC should be very precise about
how it should be delt with.  Either it causes a header parse error (no
matter what header is missing the space), and is dealt with at that level
(options are it's not an error, or it is an error and the article should
always be rejected), or, only the important headers must always have a
space and the article is rejected if they don't, or, the only something
starting with "subject: " is a "Subject" header and "subject:x" is not a
subject header.

> > Or are you implying that line in the header should not be parsed as the
> > Subject header so the article should be treated as if it had no
> > Subject?
>
> No, the article itself is syntactically invalid.

That's a reasonable approach, and I'm searching my spools and so far have
not found a single article with a missing space after the : for any header
line, so it may be a universial assumption (outside my server).  But I
think the NNTP RFC should be very clear about what is and is not a
"syntactially valid" article to the level of how to parse headers so you
can be very precise about how it reacts to these articles and what it will
produce for OVER and HDR data etc.

The NNTP RFC should not try to include the full USEFOR problem, but it
should include enough of this issue to make it precisely clear how the
server finds headers and what is valid and what is not and how it should
react to it.  It seems to me that this can be done at this level without
getting tangled up in the USEFOR problems.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64723
Author: Russ Allbery
Date: Thu, 03 Apr 2003 04:11
88 lines
5609 bytes
Curt Welch <curt@kcwc.com> writes:

> Is it because I didn't follow the RFC when I wrote my code or is it
> because the RFC wasn't detailed enough about this point I wonder?

RFC 1036 is pretty explicit about requiring the space, but your parser can
also handle RFC 2822 messages, which is useful.

> Yeah, at the NNTP level, the problem here is that you can transfer
> articles with a header like of "Crap:out" so what should an nntp server
> do if it receives an article with a header line like that?

Yup.

We don't want to limit NNTP to just RFC 1036 articles, either, since it
can handle other things.  So so far in the new standard, we're just
bailing and saying "here are some things that are fundamental about
articles from an NNTP standpoint; the rest is up to whatever article
format you want to comply with."

> If that is not a valid header line period, should the entire article
> always be rejected as totaly invalid? If, like in the Crap:out example,
> the header is not important, should it just be ignored?

I think ignoring the headers is a bad idea, since you're still giving it
to a client with that header in there.  I think that if you decide the
message is invalid, just rejecting the whole thing is the best way to go.

> Because NNTP specifies how data is transfered, and also specifies how to
> deal with headers, it seems to me the NNTP RFC should be _very_ precise
> on how the dot terminated data is parsed to find the headers and header
> data,

I think that's in there.

> and for parse errors, I think it should be _very_ precise about how to
> react to a basic parse error (this missing space issue, any line length
> issues if there are any limits, any max header size after folding
> issues, NULLs, lone CRs and LFs) in regards to the header parsing
> algorithm.

I'm not quite sure what you want here; if the message doesn't parse, it's
not valid input.

> For the missing space issue, I think the RFC should be very precise
> about how it should be delt with.

This is getting into quality of implementation issues, which I don't think
really belong in a wire protocol document.  That's not the sort of thing
that standards address; if you look at a whole bunch of IETF standards,
you won't find things like precise specification of error handling of
syntactically invalid input in many of them.  The standard specifies what
is valid input and what to do with valid input; if you send invalid input,
that's outside the scope of the standard other than specifying error codes
that you can use.

I don't want to put into a standard that you have to reject a message for
such a reason.  You may not want to do so, and it doesn't matter from a
protocol standpoint if you reject it or not.  What does matter from a
protocol standpoint is that when a client sends ARTICLE, it needs to get a
well-formed message back.  (And USEFOR will put limits on what sorts of
changes a Usenet transit server is permitted to make to articles that are
passing through.)

> That's a reasonable approach, and I'm searching my spools and so far
> have not found a single article with a missing space after the : for any
> header line, so it may be a universial assumption (outside my server).
> But I think the NNTP RFC should be very clear about what is and is not a
> "syntactially valid" article to the level of how to parse headers so you
> can be very precise about how it reacts to these articles and what it
> will produce for OVER and HDR data etc.

> The NNTP RFC should not try to include the full USEFOR problem, but it
> should include enough of this issue to make it precisely clear how the
> server finds headers and what is valid and what is not and how it should
> react to it.  It seems to me that this can be done at this level without
> getting tangled up in the USEFOR problems.

We're adding a section to deal with some of this stuff; I think the best
thing to do would be to finish that and then see what you think of the
result.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64724
Author: Juergen Helbing
Date: Thu, 03 Apr 2003 04:27
22 lines
1626 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:

>> (Oh -- perhaps that multipart matching relies on Subject
>> similarity?)
>
>exactly - the complaints were that multi-server clients were failing to
>combine parts between our server and others due to the mismatch in Subject
>lines in overview.

I also had that problem once with an NSP:
Some server-soft seemed to eliminate double spaces in the subject
when creating the xover cache. (Hard to solve for multi-host readers
when some are incomplete and headers for one multipart must be
combined from several sources).

The problem was fixed meanwhile and I assume that it was just 
a special release of one server-soft.

-- 
Juergen

Re: Standardization of LIST OVERVIEW.FMT
#64725
Author: Juergen Helbing
Date: Thu, 03 Apr 2003 05:13
38 lines
2277 bytes
Andrew - Supernews <andrew+nonews@supernews.com> wrote:

>> Do you have a solution for caching proxies which fetch only headers ?
>
>they get the bytes and lines from doing OVER or XOVER against the upstream
>server. No problem there.

Thanks.


>(Note that XHDR Lines returns the actual linecount on some servers and the
>contents of Lines: on others. HDR fixes this by having a mechanism for
>specifically requesting metadata rather than actual header fields.)

So if I get it right then "HDR Lines" will not fetch the Lines header
but the line-count and ignores the header ?

Hmmm.   A HDR command which does not deliver a header....
And it would be even possible to retrieve a header which is not 
available in the message but a self created number. But the self
create number "bytes" from xover cannot be retrieved by HDR
because it is not a header. So retrieving a specific OVERview
with HDR with just the wanted items from OVER cannot 
retrieve the BYTES but only the LINES. So if a host decides
to deliver a very large OVERview when someone only
wants the really necessary items is not possible because
BYTES cannot be retrieved.....
Or HDR accepts also BYTES as a parameter which is not 
a header....

Good luck to NNTP-taskforce with writing the "how to understand".


And thanks for the clarification.
-- 
Juergen

Re: Standardization of LIST OVERVIEW.FMT
#64726
Author: Russ Allbery
Date: Thu, 03 Apr 2003 07:34
25 lines
2272 bytes
Juergen Helbing <archiver@i3w.com> writes:
> Andrew - Supernews <andrew+nonews@supernews.com> wrote:

>> (Note that XHDR Lines returns the actual linecount on some servers and
>> the contents of Lines: on others. HDR fixes this by having a mechanism
>> for specifically requesting metadata rather than actual header fields.)

> So if I get it right then "HDR Lines" will not fetch the Lines header
> but the line-count and ignores the header ?

Nope, if you say HDR Lines, you get the Lines header, whatever is in
that.  If you want the metadata item that's the number of lines in the
message, you do HDR :lines.  Things that begin with a colon are metadata
items.  (The only two defined to start with are :lines and :bytes.)

> Hmmm.   A HDR command which does not deliver a header....

Yeah, that was the reason why we didn't go that way.  :)

-- 
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: Standardization of LIST OVERVIEW.FMT
#64727
Author: Herbert Straub
Date: Thu, 03 Apr 2003 07:53
23 lines
1708 bytes
Russ Allbery wrote:

NewsCache

> [Q1] If you know how a reading client is implemented, does that reading
>      client ever send LIST OVERVIEW.FMT?
> 
Yes, to every upstream newsserver in the connection phase

> [Q2] If the client does send LIST OVERVIEW.FMT, what does it use the
>      returned data for?
> 
Newsgroup overview information, if the whole article is not cached. The 
overview.fmt is stored per upstream newsserver.

> [Q3] If you know how a server is implemented, does it implement LIST
>      OVERVIEW.FMT?
> 
The server part offers list overview.fmt

Herbert Straub

Re: Standardization of LIST OVERVIEW.FMT
#64729
Author: Jøhnny Fävòrítê (it means "genet...
Date: Thu, 03 Apr 2003 08:15
17 lines
2079 bytes
Curt Welch wrote:
> There would be value in knowing "content" information about usenet
> articles and putting it into xover, so by looking at xover you could
> know if the article was a simple text article (text/plain) vs a
> complex MIME structured article, vs a single file of type XYZ vs a
> segment of a file of type XYZ, but there really isn't a single header
> that tells us this.

The server could whip something up by scanning the article, though.  It
would be *extremely* useful for us client authors to have something in
XOVER/OVER that says, for instance, X number of attachments, 1/2/x text
section(s), 0/1/2 HTML section(s), part X of Y.  You could get all that
into a 32-bit integer sub-divided into bitfields.  The way things are
now we are forced to guess based on the byte size.

I really think you server guys should be shooting for that, long-range.
Re: Standardization of LIST OVERVIEW.FMT
#64730
Author: Russ Allbery
Date: Thu, 03 Apr 2003 08:21
19 lines
1690 bytes
Herbert Straub <h.straub@aon.at> writes:
> Russ Allbery wrote:

>> [Q2] If the client does send LIST OVERVIEW.FMT, what does it use the
>>      returned data for?

> Newsgroup overview information, if the whole article is not cached. The
> overview.fmt is stored per upstream newsserver.

Sorry, I don't understand... what sort of newsgroup overview information
does it use the returned data for?  Just to know what's in the XOVER
returns?

-- 
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: Standardization of LIST OVERVIEW.FMT
#64733
Author: Marcus Mönnig
Date: Thu, 03 Apr 2003 10:19
21 lines
2230 bytes
Curt Welch wrote in <20030402180522.056$Vp@newsreader.com>:

> The other approach to the binary "content" problem is the xBin approach
> which tries to solve most of it with no NNTP/server changes.

I agree that this should be the long term solution. 

There might be an intermediate solution to multipart problems, probably yet 
another hack and only good for clients, not for servers, but I'm just 
brainstorming here. Some servers reply to a successful posting with "240 - 
Article posted with ID <MessageID>" instead of just "240 - Article posted". 

Is there any reason why a server should not be able to return the MessageID 
with this reply?

Marcus
-- 
I don't know what's scarier - losing nuclear weapons or that it happens 
so often that we have a name for it.
		-- Giles Prentice, in "Broken Arrow"
Re: Standardization of LIST OVERVIEW.FMT
#64734
Author: Curt Welch
Date: Thu, 03 Apr 2003 18:28
32 lines
2708 bytes
Marcus_M�nnig <usenet-mar03@40tude.com> wrote:
> Curt Welch wrote in <20030402180522.056$Vp@newsreader.com>:
>
> > The other approach to the binary "content" problem is the xBin approach
> > which tries to solve most of it with no NNTP/server changes.
>
> I agree that this should be the long term solution.
>
> There might be an intermediate solution to multipart problems, probably
> yet another hack and only good for clients, not for servers, but I'm just
> brainstorming here. Some servers reply to a successful posting with "240
> - Article posted with ID <MessageID>" instead of just "240 - Article
> posted".
>
> Is there any reason why a server should not be able to return the
> MessageID with this reply?

Well, some servers are structured so it's currently not possible to do
without changing the structure of the system.  They will accept an article
and pass it to other software or another server for processing in a batch
fashion.  The actual message-id used may not get assigned for an hour.
Where new posts are processed in batches like this, the return code from
the POST only means the article was accepted for processing and not that it
was actually posted.  So it can't include the Message-ID.

However, there's no real reason servers like that couldn't be changed and
make the first level code generate the Message-ID.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64737
Author: Curt Welch
Date: Thu, 03 Apr 2003 18:41
29 lines
2294 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> So if I get it right then "HDR Lines" will not fetch the Lines header
> but the line-count and ignores the header ?
>
> Hmmm.   A HDR command which does not deliver a header....

You just have to think about it as commands for delivering metadata about
aritcles.  bytes and lines are external article meta data, and article
headers in internal article metadata.

> And it would be even possible to retrieve a header which is not
> available in the message but a self created number. But the self
> create number "bytes" from xover cannot be retrieved by HDR
> because it is not a header.

Not so.

XHDR BYTES works on most servers already.

XOVER is a header command which has always returend this.  None of this is
new.

The new HDR command it seems is just making the distinction between
external and internal article metadata cleaner.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64740
Author: Herbert Straub
Date: Thu, 03 Apr 2003 20:38
41 lines
2881 bytes
Russ Allbery wrote:
> Herbert Straub <h.straub@aon.at> writes:
> 
>>Russ Allbery wrote:
> 
> 
>>>[Q2] If the client does send LIST OVERVIEW.FMT, what does it use the
>>>     returned data for?
>>
> 
>>Newsgroup overview information, if the whole article is not cached. The
>>overview.fmt is stored per upstream newsserver.
> 
> 
> Sorry, I don't understand... what sort of newsgroup overview information
> does it use the returned data for?  Just to know what's in the XOVER
> returns?
> 

NewsCache have a internal overview format (default: Subject, From, Date, 
     Message-ID, References, Bytes, Lines, Xref:full). On each connect 
to an upstream newsserver, NewsCache sends a list overview.fmt and store 
this format for this upstream newsserver for later conversions between 
the server format and the local database format. xover informations are 
stored in the local database after the convert. If the article will 
later requested (article xyz), then in the cache db the overview 
information is overwritten with the article (the cache db has three 
record types: overview, data, bigdata). If a xover is send by a client, 
then the returned data will created at run time: if the database record 
is type overview, then this is returned, if data | bigdata, then the 
returned data will constructed with a article->overview function. If the 
upstream  server has no xover command, or the xover command returns 
status != 215, then the default overview format is Subject, From, Date, 
     Message-ID, References, Bytes, Lines and in the further 
communication with the upstream server, the command over will be used.





Re: Standardization of LIST OVERVIEW.FMT
#64741
Author: Marcus Mönnig
Date: Thu, 03 Apr 2003 20:47
17 lines
2096 bytes
Russ Allbery wrote in <ylof3olr1k.fsf@windlord.stanford.edu>:

> Given that the Lines header lies, why would you want to use it in a
> filter?  

Curt did the math on this: <20030402185420.981$KC@newsreader.com>

> If you're working on raw message data, you already have the
> message and can count the lines yourself.

Never opened mbox files in a text editor and did the rest with regular
expressions?

Marcus
-- 
I'm out of bed and dressed, What more do you want?
Re: Standardization of LIST OVERVIEW.FMT
#64742
Author: Russ Allbery
Date: Thu, 03 Apr 2003 20:50
27 lines
2445 bytes
Marcus M�nnig <usenet-mar03@40tude.com> writes:
> Russ Allbery wrote in <ylof3olr1k.fsf@windlord.stanford.edu>:

>> Given that the Lines header lies, why would you want to use it in a
>> filter?  

> Curt did the math on this: <20030402185420.981$KC@newsreader.com>

Yes, but you're specifically talking about using it as a *filter*.
Whoever or whatever you're filtering is simply going to lie in the Lines
header to get around that.

>> If you're working on raw message data, you already have the message and
>> can count the lines yourself.

> Never opened mbox files in a text editor and did the rest with regular
> expressions?

If I have the file in a text editor, I *definitely* have the line count.
In a very easily queriable fashion, no less.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64743
Author: Marcus Mönnig
Date: Thu, 03 Apr 2003 20:53
18 lines
2037 bytes
Curt Welch wrote in <20030403132823.928$R6@newsreader.com>:

> However, there's no real reason servers like that couldn't be changed and
> make the first level code generate the Message-ID.

So how are chances to get a SHOULD or at least a recommendation
into the draft for this?

There are two benefits I can see: 
-Regarding binary multipart postings, clients could auto post an
"index" that lists all MIDs needed for a file.
-Clients would be able to track the users posts by MID, e.g. to
auto retrieve f'ups.

Marcus
-- 
Egotism:  Doing a crossword puzzle with a pen.
Re: Standardization of LIST OVERVIEW.FMT
#64744
Author: Russ Allbery
Date: Thu, 03 Apr 2003 21:41
21 lines
2105 bytes
Marcus M�nnig <usenet-mar03@40tude.com> writes:
> Curt Welch wrote in <20030403132823.928$R6@newsreader.com>:

>> However, there's no real reason servers like that couldn't be changed
>> and make the first level code generate the Message-ID.

> So how are chances to get a SHOULD or at least a recommendation
> into the draft for this?

Non-existant.  xBin isn't ready for proposed standard status, plus it
would be substantial new work which is outside the scope of our charter.

It's certainly a ripe topic for an experimental RFC, and I encourage
anyone who is working on it to consider writing one.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64745
Author: Curt Welch
Date: Fri, 04 Apr 2003 03:19
141 lines
8900 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:

> We don't want to limit NNTP to just RFC 1036 articles, either, since it
> can handle other things.  So so far in the new standard, we're just
> bailing and saying "here are some things that are fundamental about
> articles from an NNTP standpoint; the rest is up to whatever article
> format you want to comply with."

Right, what you need to do however is specify enough to answer all the
protocol related questions and then stop there.

On the issue of a space after the colon, I did find one real-world example.
Here's the headers of an article with the problem on the Subject: which
seems to have made it through many servers so mine is not the only one in
the world accepting these articles...

Path: news.newsreader.com!news2.newsreader.com!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!easynet-monga!easynet.net!newsfeed.esat.net!feeder.news.heanet.ie!not-for-mail
Newsgroups: rec.boats.paddle
From: Frosty <frosty@nochance.com>
Subject:Are the new playboats getting to gimmicky?
Message-Id: <slrnb7uqiv.ni6.frosty@Prodigy.redbrick.dcu.ie>
User-Agent: slrn/0.9.7.4 (SunOS)
Organization: Dublin City University (DCU)
Cache-Post-Path: ns2-ext.dcu.ie!frosty@prodigy.redbrick.dcu.ie
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Date: 24 Mar 2003 20:28:15 GMT
Lines: 6
NNTP-Posting-Date: 24 Mar 2003 20:28:15 GMT
NNTP-Posting-Host: 136.206.1.1
X-Trace: 1048537695 reader.news.heanet.ie 179 [::ffff:136.206.1.1]:46070
Xref: news.newsreader.com rec.boats.paddle:87891

It might be interesting to have people check their servers to see how many
servers rejected this article and for the ones that didn't, to see what the
server returns for Xover.

> > and for parse errors, I think it should be _very_ precise about how to
> > react to a basic parse error (this missing space issue, any line length
> > issues if there are any limits, any max header size after folding
> > issues, NULLs, lone CRs and LFs) in regards to the header parsing
> > algorithm.
>
> I'm not quite sure what you want here; if the message doesn't parse, it's
> not valid input.

I want all the servers to do it the same way so we don't have the current
problem of half the servers in the world rejecting an article and the other
half supporting it on Usenet.  Usenet is so large these days that any edge
condition you can think up seems to be tested almost daily by some article
being posted somewhere in the world.  This is a big part of the "usenet
doesn't work" confusion that people have and the "missing article" problem
which people fight so much in the binary groups.

The above article with the missing space does "parse" on my server and some
others, but it doesn't parse on all servers I suspect.

The point of a standard is to prevent just this type of confusion.

> > For the missing space issue, I think the RFC should be very precise
> > about how it should be delt with.
>
> This is getting into quality of implementation issues, which I don't
> think really belong in a wire protocol document.

It would be nice if the content of the article could be separated from the
NNTP protocol so the issue of how an NNTP server responds to content could
be dealt with at a different level.  But, we have this well estabished
problem of the protocol supporting the XOVER and XHDR like commands which
require that the protocol code understand how to find a "subject" in the
bytestream of an article.

> That's not the sort of
> thing that standards address; if you look at a whole bunch of IETF
> standards, you won't find things like precise specification of error
> handling of syntactically invalid input in many of them.  The standard
> specifies what is valid input and what to do with valid input; if you
> send invalid input, that's outside the scope of the standard other than
> specifying error codes that you can use.

Not really.  Does the NNTP protocol not specify how a server should respond
to a invalid NNTP command?  Are you trying to argue that it shouldn't?
Does it not define what is and is not a valid NNTP command?

Does not the TCP RFCs make it clear what the correct response is to a
packet which is not correctly formated? (i'd have to check to know the
answer to this but my guess is that it is well defined).

There are semantic issues outside the scope of the protocol which a
server will use to make a decision about rejecting an
article. But, these low level header format issues are imporant to the
servers ability to correctly interpret header data which is in fact part of
the protocol beacuse of the way it's designed (i.e. because we have a HDR
command).  If you were to remove XOVER and HDR and XPAT and the like from
the protocol, then all these issues would vanish.  The format of the
article being transported would have nothing to do with the NNTP protocol.
For HEAD, you need to define how to identify the header vs the body, but
not how to parse inside the header.  If HEAD was the only header-like
command, then we wouldn't have this issue.  But because NNTP does have OVER
and HDR command, you must specify how to parse a header.  And, you must
specify what is and is not a valid header, and I think (though this is the
weakest issue here), you need to make it clear how the server should
respond to invalid headers just like you make it clear how the server
responds to invalid NNTP commands. (or, define the header format so there
is no such thing as an invalid header in terms of NNTP which is bascially
what I did in my code).

> I don't want to put into a standard that you have to reject a message for
> such a reason.  You may not want to do so, and it doesn't matter from a
> protocol standpoint if you reject it or not.

Ah, but it does because if you accept it, it's implied that you can then do
an OVER command on the article.

I'm not sure this is really all that important, but what I'm getting at
here is that a lot of this level of semantic detail has been left undefined
in Usenet standards in the past and it leads to the real-world compatibilty
problems like the article above which some guy posted but yet it didn't
make it to half the world and he probably never knew that and wonderd why
nobody replied to it.  It's the sloppieness of these standards that causes
this, and it seems from what you have have been saying that you guys have
removed a lot of the "slop" from NNTP already in your work.  It would be
nice if this level of "slop" could be removed as well.

The issue at hand here is also an NNTP issue and not a USEFOR issue because
it only applies to NNTP servers and how they parse headers and it should
apply to all NNTP servers no matter what type of article is being
transported (Usenet or local trouble tickets).

> We're adding a section to deal with some of this stuff; I think the best
> thing to do would be to finish that and then see what you think of the
> result.

For sure.  And I still need to read the stuff you have already done.  I'm
currous to see how (or if) you have addressed the data consistency issues
across commands.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Standardization of LIST OVERVIEW.FMT
#64746
Author: Russ Allbery
Date: Fri, 04 Apr 2003 03:52
105 lines
6313 bytes
Curt Welch <curt@kcwc.com> writes:

> I want all the servers to do it the same way so we don't have the
> current problem of half the servers in the world rejecting an article
> and the other half supporting it on Usenet.

I don't see how it's possible to avoid this unless one mandates that every
server accept everything that it's sent, since if there are any limits at
all on what sort of trash one's server accepts, someone will relax those
limits and accept trash anyway.

So I'm not really interested in trying to fight that battle; I don't
believe it to be winnable.

> The above article with the missing space does "parse" on my server and
> some others, but it doesn't parse on all servers I suspect.

> The point of a standard is to prevent just this type of confusion.

The standard is already explicit about that article being invalid.  You're
already accepting it.  So how would being explicit about it being invalid
help?

The standard is already very explicit about valid message IDs.  Lots of
servers just ignore that because it's easier to accept anything than to
properly parse them.

If you're advocating that the standard explicitly say that all invalid
messages must be rejected, I don't see how that's a permissible thing for
a standard to say.  Standards only specify a protocol.  The most that they
can say is that such articles can't be returned by the ARTICLE command
without violating the protocol.  What to do with an article after it's
submitted via IHAVE is entirely a local software matter; the protocol
can't say anything about that any more than the SMTP protocol can say what
mail is and is not rejected by a server.

> It would be nice if the content of the article could be separated from
> the NNTP protocol so the issue of how an NNTP server responds to content
> could be dealt with at a different level.  But, we have this well
> estabished problem of the protocol supporting the XOVER and XHDR like
> commands which require that the protocol code understand how to find a
> "subject" in the bytestream of an article.

Well, no, it doesn't.  It requires that the server do so, but that process
is entirely outside the scope of the NNTP standard itself.  I think this
issue is already pretty well-handled by our current draft; there are
various things like this that are explicitly deferred to other standards
or left to the internal operation of the server.

> Not really.  Does the NNTP protocol not specify how a server should
> respond to a invalid NNTP command?

That's correct.  Otherwise, you could never define a local extension that
uses a new NNTP command.

The NNTP protocol provides a way for the server to indicate that a command
is invalid.  That's not the same thing.  Similarly, the NNTP protocol
provides a way of rejecting an article offered by IHAVE.  It doesn't
specify when that return code must be used.

>> I don't want to put into a standard that you have to reject a message
>> for such a reason.  You may not want to do so, and it doesn't matter
>> from a protocol standpoint if you reject it or not.

> Ah, but it does because if you accept it, it's implied that you can then
> do an OVER command on the article.

No, this is not implied anywhere in the NNTP standard, and in fact the
opposite is explicitly stated.  Just because a server accepts an article
doesn't mean that it makes it available to readers.

> I'm not sure this is really all that important, but what I'm getting at
> here is that a lot of this level of semantic detail has been left
> undefined in Usenet standards in the past

No, it's not.

The semantic detail is very explicitly present in the existing standard.
What you appear to be arguing is that the *error handling* has been left
undefined in the Usenet standards of the past.  *That's* correct, and is
correct in almost every other Internet protocol as well, because error
handling is a quality of implementation issue outside the scope of the
wire protocol standard.

You're talking about how a server should handle invalid articles.  Whether
or not they're invalid is not in question and never has been.

This is where stuff like "be conservative in what one generates and
liberal in what one accepts" comes in.

> It's the sloppieness of these standards that causes this,

I strongly disagree.  I think it's due to the sloppiness of code that
allows the posting of articles which do not follow the standards and never
have.  :)

Anyway, I don't think that there's really any way for us to make you fully
happy here.  It just goes beyond what you can say in a standard, IMO.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64757
Author: Jeffrey M. Vinocur
Date: Sat, 05 Apr 2003 00:13
22 lines
1967 bytes
In article <PM0003BA62A25DC38B@minion.nashville.comcast.net>,
J�hnny F�v�r�t� (it means "genetic antagonism")  <this.is@fake.com> wrote:
>
>The server could whip something up by scanning the article, though.  It
>would be *extremely* useful for us client authors to have something in
>XOVER/OVER that says, for instance, X number of attachments, 1/2/x text
>section(s), 0/1/2 HTML section(s), part X of Y.  You could get all that
>into a 32-bit integer sub-divided into bitfields.  The way things are
>now we are forced to guess based on the byte size.
>
>I really think you server guys should be shooting for that, long-range.

Sure, it would be useful.  The trouble is doing it *right*.

You may find Jeremy's proposal along these lines interesting:

    http://www.exit109.com/~jeremy/news/binaries/posting.html

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Standardization of LIST OVERVIEW.FMT
#64760
Author: Kai Henningsen
Date: Sat, 05 Apr 2003 06:31
27 lines
2419 bytes
urs@tin.org (Urs Jan�en)  wrote on 04.04.03 in <b6iio2$op4$1@news.rz.uni-karlsruhe.de>:

> In <ylk7eb9ufj.fsf@windlord.stanford.edu>,
>     Russ Allbery wrote:
> > Yes, but you're specifically talking about using it as a *filter*.
> > Whoever or whatever you're filtering is simply going to lie in the Lines
> > header to get around that.
>
> sure, but as most articles don't have a horrible wrong Lines header
> (I'm sure most readers will filter on the lines data from the
> overview, but even if not or that's just a copy what Lines: says) it
> still might be usefull for some filtering (where false positives don't
> hurt too much, i.e. hide all articles with less than n lines in
> *binarie* groups ...

But *all* of those applications will be better of with a real count of the  
lines (:lines) than with a copy of the Lines: header.

The only one I can imagine that would want the original Lines: header  
would be one that got both, and explicitely filtered for differences.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Standardization of LIST OVERVIEW.FMT
#64761
Author: Kai Henningsen
Date: Sat, 05 Apr 2003 06:40
38 lines
2595 bytes
rra@stanford.edu (Russ Allbery)  wrote on 03.04.03 in <yladf79s3b.fsf@windlord.stanford.edu>:

> Marcus M�nnig <usenet-mar03@40tude.com> writes:
> > Curt Welch wrote in <20030403132823.928$R6@newsreader.com>:
>
> >> However, there's no real reason servers like that couldn't be changed
> >> and make the first level code generate the Message-ID.
>
> > So how are chances to get a SHOULD or at least a recommendation
> > into the draft for this?
>
> Non-existant.  xBin isn't ready for proposed standard status, plus it

Just a moment.

The question was NOT about xBin.

The question was, in fact, about messages that cannot be xBin because they  
do not have a message id when POSTed.

The question was if the standard could say, very approximately,

        POST
        (...)
        xxx Message was posted with id <xxx@yyyy>

        The positive reply SHOULD contain the message id of the just
        posted article, regardless of it being already given in the
        article, or generated by the server.

I'd say that would be a good idea.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Standardization of LIST OVERVIEW.FMT
#64764
Author: Jøhnny Fävòrítê (it means "genet...
Date: Sat, 05 Apr 2003 09:02
15 lines
2028 bytes
Jeffrey M. Vinocur wrote:
> You may find Jeremy's proposal along these lines interesting:
>
>     http://www.exit109.com/~jeremy/news/binaries/posting.html

Yes, plenty interesting.  It would work fine.  What I don't get, though,
is why it takes seemingly decades for stuff like this to get rolled into
accepted RFCs and then become actual practice.  If the web evolved as
slowly then we'd all still be using gopher.

The practical upshot seems to be if the accepted standards bodies don't
get off their duffs and come up with something then evolution comes from
people who are not qualified to do so, such as certain rogue coders I
could name who have devised inferior binary posting "standards."
Re: Standardization of LIST OVERVIEW.FMT
#64767
Author: Russ Allbery
Date: Sat, 05 Apr 2003 18:00
38 lines
2507 bytes
Kai Henningsen <kaih=8jGGuLNmw-B@khms.westfalen.de> writes:

> Just a moment.

> The question was NOT about xBin.

Sorry.  :/  That wasn't at all clear; I even re-read the thread to try to
figure out what was being discussed and was sure that people were talking
about xBin.

> The question was, in fact, about messages that cannot be xBin because
> they do not have a message id when POSTed.

> The question was if the standard could say, very approximately,

>         POST
>         (...)
>         xxx Message was posted with id <xxx@yyyy>

>         The positive reply SHOULD contain the message id of the just
>         posted article, regardless of it being already given in the
>         article, or generated by the server.

> I'd say that would be a good idea.

This would have been a good thing to propose a year ago.  At this point,
given that last call is due *this month*, I think it's much too late to
put in any new work, even minor new work.

We can't keep adding stuff forever; the new NNTP standard is already years
overdue.  Part of my job is to be the bad guy who says no.

-- 
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: Standardization of LIST OVERVIEW.FMT
#64768
Author: Marcus Mönnig
Date: Sat, 05 Apr 2003 19:00
17 lines
2087 bytes
Russ Allbery wrote in <ylhe9cvn7u.fsf@windlord.stanford.edu>:

> This would have been a good thing to propose a year ago.  At this point,
> given that last call is due *this month*, I think it's much too late to
> put in any new work, even minor new work.

That's fair enough and I appreciate your work on it. 

Is there a roadmap or are there any plans for the post-draft era
yet?

Marcus
-- 
We taxied for so long, I was sure we'd accidentally landed at San
Jose.
		-- L. Phobos, on the San Francisco airport
Page 2 of 3 • 104 total messages
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