🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #68030

Byte count in the overview

#68030
From: Clive D. W. Feather
Date: Tue, 10 Feb 2004 15:56
51 lines
3839 bytes
I'm looking for input, particularly from client authors, about a detail 
in the new NNTP specification.

The OVER command returns a number of fields for each relevant article. 
The 7th field is the byte count, called Bytes: in LIST OVERVIEW.FMT 
(though our draft renames it to :bytes for good reasons).

The question I have is: what do client authors use this value for, and 
how important is it that it is accurate?

At present, we say that the value SHOULD be the number of octets in the 
article, both header and body, with in particular:
* each CRLF counts as 2 octets;
* the count ends with the last CRLF of the article, and excludes the
   "." CRLF that terminates the response to an ARTICLE or BODY command;
* similarly, the dot stuffed at the start of a line beginning with a dot
   in such a response is also not counted (that is, the two dots count as
   1 octet between them).

We are aware that some servers return a different count. There are three 
common variations:
* some store the article in a format (e.g. Unix text file) where CRLF is
   a single octet, and simply return the file size;
* some store the article in "wire format", including stuffed dots and
   the final "." CRLF, and again simply return the file size;
* some - cluster systems - have multiple copies of an article available
   which differ in a permitted manner, and use the size for one in the
   overview but return a different copy to ARTICLE and BODY.

So how much does this matter to clients?  If a client is using the count 
just to drive a killfile, then this level of variation is unimportant. 
But is this the only such use? If the count is used to allocate a 
buffer, it is important that it not be too small [*]. If it is used to 
control streaming (for example, to determine the earliest point at which 
the terminating dot of an ARTICLE command could happen) then it is 
important that it not be too large [*]. But are these uses too esoteric 
for real clients?

This is where we'd like input.

[*] Of course, it is sufficient that a client can derive "not too small" 
or "not too big" values. For example, we could say that the value of 
Bytes: MUST NOT differ from the true value by more than 99 octets plus 
the value of Lines:, or by not more than 5%. If so, the "not too small" 
value would be Bytes:+Lines:+99, or Bytes:*1.05.

-- 
Clive D.W. Feather, writing for himself  | Home: <clive@davros.org>
Tel: +44 20 8495 6138 (work)             | Web:  <http://www.davros.org>
Fax: +44 870 051 9937                    | Work: <clive@demon.net>
Written on my laptop; please observe the Reply-To address
Technical Details
Message-ID: <LfY1uy098PKAFwah@romana.davros.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!on-the-train.demon.co.uk!clive

Show Full Headers
Complete Article Headers
Message-ID: <LfY1uy098PKAFwah@romana.davros.org>
Subject: Byte count in the overview
Date: Tue, 10 Feb 2004 15:56:45 +0000
From: "Clive D. W. Feather" <clive@on-the-train.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!on-the-train.demon.co.uk!clive
Newsgroups: news.software.nntp
Organization: Demon Internet
Lines: 51
Reply-To: "Clive D.W. Feather" <clive@davros.org>
NNTP-Posting-Host: gwh-224-244.dhcp.demon.net
Mime-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
X-Trace: news.demon.co.uk 1076428989 26194 193.195.224.244 (10 Feb 2004
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 10 Feb 2004 16:03:09 +0000 (UTC)
User-Agent: Turnpike/6.02-U (<81yImECxEkLwWkbKTSiEkLA3nC>)