🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #32311

References headers > 512 bytes ?

#32311
From: billy
Date: Thu, 27 Mar 1997 00:00
60 lines
3317 bytes
With respect to the maximum length of a references header
in a news article tin v1.3unoff says in post.c -

> /* Widespread news software like INN's nnrpd restricts the size of several
>    headers, notably the references header, to 512 characters.  Oh well...
>    guess that's what son-of-1036 calls a "desparate last ressort" :-/
>    From TIN's point of view, this could be HEADER_LEN. */
> #define MAXREFSIZE 512

Then shortly thereafter it goes on to say -

>	/* First of all: shortening references is a VERY BAD IDEA.

Why weren't the excess references data folded into header continuation
lines, instead of truncating as tin goes on to do?  That is, does this
512 byte limit include continuation lines?

Billy Y..

The rest of these comments are appended for reference -

>	   Nevertheless, current software usually has restrictions in
>	   header length (their programmers seem to misinterpret RFC821
>	   as valid for news, and the command length limit of RFC977
>	   as valid for headers) */
>	/* construct a new references line, then trim it if necessary */
>	/* do some sanity cleanups: remove damaged ids, make
>	   sure there is space between ids (tabs and commas are stripped) */
>	/* note that we're not doing strict son-of-1036 here: we don't
>	   take any precautions to keep the last three message ids, but
>	   it's not very likely that MAXREFSIZE chars can't hold at least
>	   4 refs */
	   [...]
>	   /* son-of-1036 says:
>	   Followup agents SHOULD not shorten References  headers.   If
>	   it  is absolutely necessary to shorten the header, as a des-
>	   perate last resort, a followup agent MAY do this by deleting
>	   some  of  the  message IDs.  However, it MUST not delete the
>	   first message ID, the last three message IDs (including that
>	   of  the immediate precursor), or any message ID mentioned in
>	   the body of the followup.  If it is possible  for  the  fol-
>	   lowup agent to determine the Subject content of the articles
>	   identified in the References header, it MUST not delete  the
>	   message  ID of any article where the Subject content changed
>	   (other than by prepending of a back  reference).   The  fol-
>	   lowup  agent MUST not delete any message ID whose local part
>	   ends with "_-_" (underscore (ASCII 95), hyphen  (ASCII  45),
>	   underscore);  followup  agents are urged to use this form to
>	   mark subject changes, and to avoid using it otherwise.
>	   [...]
>	   When a References header is shortened, at least three blanks
>	   SHOULD be left between adjacent message IDs  at  each  point
>	   where  deletions  were  made.  Software preparing new Refer-
>	   ences headers SHOULD preserve multiple blanks in older  Ref-
>	   erences content.
>	 */


Technical Details
Message-ID: <5hf05a$636@nnrp1.news.primenet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <5hf05a$636@nnrp1.news.primenet.com>
Subject: References headers > 512 bytes ?
Date: Thu, 27 Mar 1997 00:00:00 +0000
From: billy@mix.com
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 228871199
Organization: Billy's Place
X-Posted-By: billy@206.165.5.101 (billy)
Newsgroups: news.software.readers