🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #55806

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

#55806
From: Andrew - Supernews
Date: Mon, 31 Dec 2001 01:59
72 lines
4715 bytes
In article <301220011543570175%planb@newsreaders.com>, J.B. Moreno wrote:
> Servers aren't supposed to be modifying /any/ headers; with the
> possible exception of Message-ID and Date.

!!!

Those are the two headers that the server ABSOLUTELY MUST NOT MODIFY. They
are the core of the loop-prevention mechanism.

Yes, I know there are sites that think that they know better and like to
force the message-id; I would never consider actually _using_ any of those
sites for exactly that reason. Client-supplied message-ids are extremely
useful for clients that know what to do with them (especially scoring on
followups, which is a must-have for reading any even moderately busy
newsgroup). This is all on top of the fact that users can and will find
inventive ways to re-inject old news regardless of what precautions you
take to prevent it; preserving the message-id is the absolute best way
of preventing this from doing damage.

Clobbering the Date is a more subtle problem; it causes spews of articles
which are old enough to have expired from history but which are re-injected
for whatever reason. The boneheaded behaviour of early Typhoon versions
(which overwrote Date by default) caused a _very_ large number of spewing
incidents; this phenomenon can _still_ be seen on a regular basis from any
site that clobbers the Date header. (In fact, I currently see a more or
less continuous stream of articles recycled, with the same Message-ID but
different Date, at periods of around 4-6 weeks.)

There is NO EXCUSE for modifying a Date header. If it's not valid, you
should reject the post. If it's more than a day in the future, or older
than the depth of your history file, then reject the post. But _don't_
fall into the trap of thinking that it's somehow "not important" or that
you can "fix" the behaviour of broken clients or PC's with broken clocks
and no time synchronisation.

>[Frank Durda IV] 
>> On messages our servers received via "POST", if the References: line exceeds
>> 512 bytes, it takes the oldest message-IDs in the References line and
>> discards them, trimming the line to just under 512 bytes total.  We also
>> insert a header following the References: line indicating that the server
>> did trimming:
>> 
>> X-A-Notice: References line has been trimmed due to 512 byte limitation

I looked for articles with this header. The first one I found, the
parent article had 9 references, so the one I found should have had 10;
in fact, your server had cut it down to the last one only. Stupid.

Servers should not try and restrict clients this way. It is quite normal
for References lines to be longer than 512; it doesn't start to be a
significant issue until they reach 1024 (yes, I'm aware of the bug in some
old clients that assumed that the NNTP 512-byte limit applied to article
lines and not just to commands and responses). I occasionally see articles
arriving with slightly longer References, but not much.

> (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). (Though we
do have a limit of 64k for the total overview data for one article.)
For local posts, you probably want to prevent excessively long headers,
but rejecting the article is the way to do that, not trying to trim the
headers.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Technical Details
Message-ID: <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!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <a0mi6g$qqr$2@mail.cn99.com> <89D4B9B30FF4B74D.88112137168FC760.06FBECD6A13DF2D8@lp.airnews.net> <301220011543570175%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrna2vhjn.1grc.andrew+nonews@trinity.supernews.net>
Subject: Re: Does the server has to save the full "References: " field?
Date: Mon, 31 Dec 2001 01:59:19 -0000
From: andrew+nonews@supernews.com (Andrew - Supernews)
References: <a0mi6g$qqr$2@mail.cn99.com> <89D4B9B30FF4B74D.88112137168FC760.06FBECD6A13DF2D8@lp.airnews.net> <301220011543570175%planb@newsreaders.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!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Posted via Supernews, http://www.supernews.com
Reply-To: andrew@supernews.com
User-Agent: slrn/0.9.7.1 (FreeBSD)
X-Complaints-To: newsabuse@supernews.com
Lines: 71