🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #263250

Re: 80 character header limits?

#263250
From: VanguardLH
Date: Sat, 02 Mar 2019 03:37
173 lines
9161 bytes
Eli the Bearded wrote:

> dale wrote:
>
>> What newsreaders have 80 character header limits? I like to crosspost to 
>> broaden the audience.

No mention if the OP was trying to fix the header line length in his own
submissions or force a line wrap of long header when reading the posts
of others in his choice of NNTP client.

Cross-posting to more than 3 newsgroups means you haven't a clue of what
audience to target.  You are shotgunning.  Many Usenetizens will filter
out excessive cross-posters, so you end up narrowing your audience.

The Newsgroups header cannot be folded; i.e, no continuation lines.
That means your list of comma-delimited newsgroups must be less than 986
characters long.  Physical line length is limited to 998 characters, and
the Newsgroups header can occupy only 1 physical line.

  Newsgroups: <grouplist>
  \__12char__/\__986chr_/ 
                  \__ (or 985 if the trailing newline is included in the 
                       998 limit for a physical line)

> I don't know of any that have hard limits that low on incoming headers.
> NNTP has a maximum line length that is somewhere between 500 and 1000
> characters, I do not recall the exact value. 

998 characters (often called octets since a character is 8 bits).  

https://tools.ietf.org/html/rfc5322, section 2.1.1
  "Each line of characters MUST be no more than 998 characters, and 
  SHOULD be no more than 78 characters, excluding the CRLF."

Alas, "should" and "recommend" are often ignored.  By folding a header
into continuation lines, the 998-character limit per physical line can
be bypassed.  There is no logical limit on the length of a multi-line
header except any header with one, or more, encoded words must be
limited to 76 characters per physical line.  An example of an encoded
word is when someone uses UTF chars in the Subject header to use
characters outside of ASCII7.  The Subject header's value starts with
=?, ends with ?=, and has has two ? between; for example, 

	Subject: =?<charset>?<encoding>?<encodedtext>?=

Those limits are only for non-wrappable headers.  Many headers can be
wrapped; that is, they can be folded into continuation lines.

<headername>: <headervalue1> ...
 <headervalueN> ...
 <headervalueX> ...
\
 \__ Minimum 1 whitespace for continuation line.
  
Headers must start in column 1, specify the name of the header, followed
by a colon (no whitespace between headername and colon), followed by one
whitespace character, and then the value tokens for the header.  To
continue the header to more than one physical line, the continuation
line must have a minimum of one leading whitespace character and then
followed by value tokens.

Headers cannot be folder before the space after the colon immediately
following the header's name.  Before folding, there SHOULD be at least
one non-whitespace character after the one required whitespace character
after the colon after the header name.

> Only a few headers are limited to a single line, off the top of my
> head: Path:, References:, and Newsgroups:.

Also the Message-ID header.  I have not yet found an RFC that declared
which headers must /not/ be folded.  Which have not been folded, so far,
is mostly from what I've seen for usage in the past.

As for the References header, *yes*, it can be and must often get
folded; i.e., it may be a multi-line header.  Because References lists
the hierarchy of a thread by the MIDs of each parent post, it definitely
is allowed continuation lines.  A definite problem with MIDs is that the
server will not override a client-supplied MID value; that is, if the
client adds the MID header, the server won't.  Trolls have glomed onto
this by making their MIDs excessively long resulting in an abnormally
long References header (with its continuation lines).  No such thing as
an infinitely lengthed header, so clients will truncate the References
header (clients generate the chain since they add the References header,
not the server).  The client keeps the first (starter) MID, keeps the
last N MIDs, and deletes some MIDs after the starter MID.  

References: <mid1> <mid2> <mid3> ... <mid50> <mid51> ... <mid200>
might get truncated to:
References: <mid1> <midN-50> <midN-49> ... <midN>

This breaks the chain for hierarchy, so other clients retrieving the
article may not know just under where under subthreads to the starter
MID to position a reply that has only the last N MIDs (i.e., some MIDs
missing in the chain listed in References).  Trolls might try to mangle
the threading.  I don't recall there is a maximum length to the MID's
value other than 986 characters, as in:

  Message-ID: <leftoken@rightoken>
  \__12char__/\______986char_____/
  \____________998char___________/
  (I don't remember if the trailing newline, /n, CRLF, is included in 
  the 998 physical line length.)
  
With a 986-character MID, and since "References: " is also 12
characters, the References' first head line could only list one MID (the
starting one).  With similarly excessively long MIDs, each continuation
line would also be able to list only one MID.  The client generates this
header, and no software has an infinitely long buffer to compose this
header (and there's also a limit on article size at the server), so the
client will truncate the MID: keep the first MID, keep the last N MIDs,
and delete the MIDs between.  I don't know if there is a standard of
MIDs to retain in the References header after which truncation occurs.

Normally trunction doesn't occur unless a subthread gets ridiculous
deep; however, with excessively long MIDs, trolls can make the
References header truncate sooner.

UPDATE: I found a limit of MID length.

  https://tools.ietf.org/html/rfc5536
  Section 3.1.1 - Message-ID
  "The <msg-id> MUST NOT be more than 250 octets in length."

That's still a damn long MID.  At that max length, only 3 MIDs could be
listed after "References: " meaning the chaining of a subthread could
not exceed 3 articles deep, and quite often a subthread progresses
deeper than just a starter post, a reply, and a reply to the reply.

For an example of a References header that was folded (into continuation
lines), see:

http://al.howardknight.net/msgid.cgi?STYPE=msgid&A=0&MSGI=%3Cq5cojg%24439%241%40dont-email.me%3E

which has:

References: <q58q9d$qp5$1@dont-email.me>
 <HZOdnVpGkom7K-XBnZ2dnUU7-cvNnZ2d@earthlink.com>
 <20190301090139@news.eternal-september.org>
 <OKOdnYdeBLk8BeTBnZ2dnUU7-RPNnZ2d@earthlink.com>

> BUT any time you think you need a crosspost to more than 3 groups, smack
> your head against the table for each group. Then do it a second time if
> you don't put a Followup-To: header in for threee or fewer groups.

The more newsgroups to which you cross-post, the less likely that they
are related for the article to remain on-topic in each one.  Many users
will filter out any articles that are cross-posted to more than 3
newsgroups.  Shotgunning is usually not appreciated and indicates the
poster hasn't a clue where to submit.

I consider use of the FollowUp-To header to be rude.  You chose to post
to multiple groups to enlarge your audience but then you rudely yank
away the discussion to your personally favorite group(s) which users in
the other newsgroups may not and likely do not visit.  There are few
examples of where FollowUp-To is appropriate, like spam exhibits posted
in one newsgroup but discussions about them are in another newsgroup;
i.e., don't taint the exhibit group with the discussion group.

If you don't intend to continue your discussion in the other newsgroups
that YOU *chose* to cross-post then don't cross-post there!  You have
your favorite newsgroup(s) but don't expect others to visit newsgroups
they don't habitate.  Don't waste the time and effort of respondents in
those other newsgroups that submit their replies that won't be seen by
you or other users in your "home" newsgroups where you carry on with the
discussion, or attempt to lure the respondents in the other newsgroups
into those they would never visit.

> ------

Not a valid signature delimiter line.

> <off-topic signature>
Technical Details
Message-ID: <1brxy36ifclri.dlg@v.nguard.lh>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <c18onk.9d4.19.1@news.alt.net> <eli$1903011515@qaz.wtf>

Show Full Headers
Complete Article Headers
Message-ID: <1brxy36ifclri.dlg@v.nguard.lh>
Subject: Re: 80 character header limits?
Date: Fri, 1 Mar 2019 21:37:08 -0600
From: VanguardLH <V@nguard.LH>
References: <c18onk.9d4.19.1@news.alt.net> <eli$1903011515@qaz.wtf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Usenet Elder
Lines: 173
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net bIAdRyFRhfCrVUQGIaNZ4Aj8ZxyyM0aGuwufqv+ueLjem5WHgA
Keywords: VanguardLH VLH811
Cancel-Lock: sha1:w6VJ4bLrU9IM8R2xlb1GxyDyw8o=
User-Agent: 40tude_Dialog/2.0.15.41
X-Received-Bytes: 9048
X-Received-Body-CRC: 2404921881