🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55811

Re: Does the server has to save the full "References: " field?

#55811
From: Curt Welch
Date: Mon, 31 Dec 2001 03:28
30 lines
2808 bytes
andrew@supernews.com wrote:
> In article <301220011543570175%planb@newsreaders.com>, J.B. Moreno wrote:

> > (Joshua, this is in no way a recommendation that you follows Airnews
> > example, I /strongly/ recommend that you leave the References header
> > alone, if it exceeds 1000 bytes then reject the article, but don't trim
> > it yourself).
>
> Servers should handle arbitrary length headers in articles received from
> other servers (though INN's 1024-byte limit is likely to remain an issue
> for the forseeable future, even if it gets fixed in new code).

The nnrpd line length limit in INN 1.7.2 was 1000 bytes for any line in the
data for a POST command.  But the READline() code had an off-by-one issue
which made the real limit 999 bytes which was the limit for the entire line
including the CR LF.  So, for a single-line References: header, newsreaders
must keep it under 997 before you add the CR LF.  If not, the post will be
rejected (which is a bitch for the user but not for the rest of Usenet).

On the code which reads articles and un-folds long lines, I believe inn
has a 1024 byte limit and if you exceed that, I'm not sure what happens,
but I suspect the article is rejected if the header is one of the headers
that INN checks (and References: is one of those).  And that might be a
1024 limit for just the data for the header (not including the
References:).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20011230222837.920$ko@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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <a0mi6g$qqr$2@mail.cn99.com> <89D4B9B30FF4B74D.88112137168FC760.06FBECD6A13DF2D8@lp.airnews.net> <301220011543570175%planb@newsreaders.com> <slrna2vhjn.1grc.andrew+nonews@trinity.supernews.net>

Show Full Headers
Complete Article Headers
Message-ID: <20011230222837.920$ko@newsreader.com>
Subject: Re: Does the server has to save the full "References: " field?
Date: Mon, 31 Dec 2001 03:28:38 +0000
From: curt@kcwc.com (Curt Welch)
References: <a0mi6g$qqr$2@mail.cn99.com> <89D4B9B30FF4B74D.88112137168FC760.06FBECD6A13DF2D8@lp.airnews.net> <301220011543570175%planb@newsreaders.com> <slrna2vhjn.1grc.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com vHH1UMyi,sz7_xL,Nex3MwcYD2/6ig2nrGaLiFW9XdbxPFh
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: 29