🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81175

Re: NNTP Protocol Question

#81175
From: Curt Welch
Date: Mon, 01 Jun 2009 04:19
61 lines
4520 bytes
=?Windows-1252?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid>
> wrote: 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).

Yes, good to see they did finally formalize what it _should_ be returning.
That at least gets us headed in a the right direction!

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20090601001817.048$1W@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.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.glorb.com!transit3.readnews.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!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> <gvus5o$t87$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <20090601001817.048$1W@newsreader.com>
Subject: Re: NNTP Protocol Question
Date: Mon, 01 Jun 2009 04:19:30 +0000
From: curt@kcwc.com (Curt Welch)
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> <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.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.glorb.com!transit3.readnews.com!news-xxxfer.readnews.com!textspool1.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr5-q1.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com FM=TRlt0pe0HeVHpc=/-,q7Y6yQuhw,@ZPXO5DCbFTZRQS+s
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
 ?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 61
NNTP-Posting-Host: 8dce47f5.nr5-q1.newsreader.com
X-Trace: DXC=n\=aD4<[J:UKNI1NYE@YT_bgZaH`e<A[YZ?:i9<JJBS^[; iPJQn<54_iJ;
 iV2YAoGUoK\fg`F7F[\G>lY7D3E?ZS
X-Complaints-To: abuse@newsreader.com
X-Original-Bytes: 4285