🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81169

Re: NNTP Protocol Question

#81169
From: Julien ÉLIE
Date: Sun, 31 May 2009 21:17
61 lines
4072 bytes
Hi Curt,

> Yeah, but that's historically typical.  You can't trust the size number to
> be accurate.  Maybe the new OVER command fixed that, I'm not sure.  There
> was never a clear definition of what size you were supposed to return for
> xover.  There was the raw wire size of the article that includes the CR LF
> and the extra stuffed dots, there's the size without the dot stuffing, but
> still using CR LF for line ends. Then there's the size of the article if it
> has been stored on a unix system where the CR LF was converted to just LF.
> And for the raw formats, it was never clear if the trailing DOT CR LF
> should be counted as part of the size or not.
>
> Because of all these issues, you can't really trust the size to be
> accurate. It should be seen only as a close approximation (unless this has
> been cleaned up in the new RFC with the OVER command).


Yes, OVER is properly defined.  A compliant news server should follow
what the SHOULD describes.  (And the note on the accuracy of what
existing implementations return corresponds to your explanations.)


8.1.1.  The :bytes Metadata Item

   The :bytes metadata item for an article is a decimal integer.  It
   SHOULD equal the number of octets in the entire article: headers,
   body, and separating empty line (counting a CRLF pair as two octets,
   and excluding both the "." CRLF terminating the response and any "."
   added for "dot-stuffing" purposes).

   Note to client implementers: some existing servers return a value
   different from that above.  The commonest reasons for this are as
   follows:

   o  Counting a CRLF pair as one octet.

   o  Including the "." character used for dot-stuffing in the number.

   o  Including the terminating "." CRLF in the number.

   o  Using one copy of an article for counting the octets but then
      returning another one that differs in some (permitted) manner.

   Implementations should be prepared for such variation and MUST NOT
   rely on the value being accurate.


8.1.2.  The :lines Metadata Item

   The :lines metadata item for an article is a decimal integer.  It
   MUST equal the number of lines in the article body (excluding the
   empty line separating headers and body).  Equivalently, it is two
   less than the number of CRLF pairs that the BODY command would return
   for that article (the extra two are those following the response code
   and the termination octet).

-- 
Julien ÉLIE

« Ad iura renunciata, non datur regressus. » 
Technical Details
Message-ID: <gvus5o$t87$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
References: <a23aa396-426d-4f14-b9dc-540da7da4027@n8g2000vbb.googlegroups.com> <gvhd9o$d6j$1@news.httrack.net> <7881uoF1k3o2lU1@mid.individual.net> <gvml6j$8bj$1@news.trigofacile.com> <20090530011921.790$hv@newsreader.com> <gvqr93$5mg$1@news.trigofacile.com> <20090531161400.754$t9@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <gvus5o$t87$1@news.trigofacile.com>
Subject: Re: NNTP Protocol Question
Date: Sun, 31 May 2009 23:17:19 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <a23aa396-426d-4f14-b9dc-540da7da4027@n8g2000vbb.googlegroups.com> <gvhd9o$d6j$1@news.httrack.net> <7881uoF1k3o2lU1@mid.individual.net> <gvml6j$8bj$1@news.trigofacile.com> <20090530011921.790$hv@newsreader.com> <gvqr93$5mg$1@news.trigofacile.com> <20090531161400.754$t9@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!gegeweb.org!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 61
NNTP-Posting-Host: aaubervilliers-151-1-45-218.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1243804664 29959 83.114.135.218 (31 May 2009
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sun, 31 May 2009 21:17:44 +0000 (UTC)
In-Reply-To: <20090531161400.754$t9@newsreader.com>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049