🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #188768

Re: does it matter whether References headers are folded?

#188768
From: Curt Welch
Date: Mon, 07 Aug 2006 20:37
93 lines
5845 bytes
Anonymous <nobody@bikikii.ath.cx.invalid> wrote:
> In article <2c0c58bebd78da6b816987b210060211@dizum.com>
> Nomen Nescio <nobody@dizum.com> wrote:
> >
> > RFC 1036 says the message-IDs in the References header should be
> > separated by a space, but it's quite common to see them folded
> > (separated by a newline and some spaces or a newline and a tab).
> >
> > Does it matter?
> >
> > Is either folded or unfolded better or worse than the other?
>
> It shouldn't matter, but there are times when it matters to some
> home-grown applications.  For example I've found that the BigApple
> mail2news software, currently run by Bikikii I think, barfs on folded
> headers by only including the first line.  Other times we've seen
> non-folded headers truncated by a limit on line length.
>
> What to do.

References: tend not to be folded and are intelligently truncated to 998
  bytes by removing Message-IDs starting with the second on the line
  (always leaving the first and as many of the last ones as possible).
  Technically, you should be able to fold them but there was a time in the
  past that it was felt it would break too many things if you folded the
  References: line. I tend to suspect that's not an big issue anymore.  The
  998 limit was because some news software (INN at the time?) didn't allow
  you to post lines longer than that.  That was a limit after the folding
  was removed so you couldn't "fix" the line length problem with folding.

I have no idea what INN and all the other news servers currently allow for
line lengths and whether the 998 limit is important anymore.

However, References: are one of the fields that are part of XOVER and
keeping References: lines more than 1000 bytes in length I think is just
wasteful at best since all the Message-IDs except the first and last are
generally redundant and of minor importance.  So I think it is probably
wise to continue to use a truncation algorithm.

And, if I was writing a new reader, I wouldn't fold References: lines -
just because there's no advantage to doing it that I know of and a slight
risk it would cause an issue.

Here's some more thoughts about References: lines from the GNKSA:

http://www.xs4all.nl/~js/gnksa/gnksa.txt

7) Make sure followups contain valid References

When creating a followup, the software MUST create a "References: "
header line that contains, as its last element, the Message-ID of the
original article.  An individual Message-ID MUST never be truncated.

The software MUST include at least three additional Message-IDs from
the original article's References header as well, if they are available.
Try to stay as close as possible to the spirit of "son-of-1036", which
states:

        <<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.>>

However, it also says:

        <<If  it  is  absolutely  necessary  for  an implementation to
          impose a limit on the length of header lines, body lines, or
          header  logical  lines,  that  limit  shall be at least 1000
          octets, including EOL representations.>>

So, bear in mind that news transports are not guaranteed to be able to
handle arbitrary long lines.  Furthermore, keep in mind that some news
transports choke on continued (multi-line) "References: " headers.

Therefore, keep as many Message-IDs as will fit on a line starting with
"References: " with a maximum length of 998 characters.  (An octet is a
byte of 8 bits, EOL representation takes two bytes.)

Exception: Damaged (truncated) Message-IDs SHOULD NOT be included.
Neither should `bogus' Message-IDs -- IDs that somehow got inserted (by
a misguided user, maybe) but don't belong to the thread.

Rationale: Threaded news-readers depend on References to do their magic.
This too is basic RFC compliance.  Be as complete as the line length
limit allows, but do not propagate errors.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Technical Details
Message-ID: <20060807164654.426$fg@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.misc.mbox.zip!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.190.247.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr3.newsreader.com.POSTED!not-for-mail
References: <2c0c58bebd78da6b816987b210060211@dizum.com> <1K0ORU6738936.6401388889@anonymous.poster>

Show Full Headers
Complete Article Headers
Message-ID: <20060807164654.426$fg@newsreader.com>
Subject: Re: does it matter whether References headers are folded?
Date: Mon, 07 Aug 2006 20:37:53 +0000
From: curt@kcwc.com (Curt Welch)
References: <2c0c58bebd78da6b816987b210060211@dizum.com> <1K0ORU6738936.6401388889@anonymous.poster>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.misc.mbox.zip!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.190.247.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr3.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.readers,comp.lang.perl.misc,alt.privacy.anon-server
X-NRC-Trace: NewsReader.Com ACOycndjJ@lQzbwVboT-/Fpouc0BAR,C5ZPXO5DCWQgNRnUaS
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: 92
NNTP-Posting-Host: db6d4206.nr3.newsreader.com
X-Trace: DXC=h?1\i[ULhSJdiNYZAi^X>MOA8_@f\K_iB0V\?8`j4eWK9]S5Q4FLT;CNd7biGRhQTG<@WejEU8`YK9DT3X0GB85D
X-Complaints-To: abuse@newsreader.com