🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #263254

Re: 80 character header limits?

#263254
From: Eli the Bearded
Date: Sat, 02 Mar 2019 07:08
160 lines
8216 bytes
In news.software.readers, VanguardLH <V@nguard.LH> followed up to me:
>> 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.

That is indeed a special case. Message-ID is supposed to have one word
(if you will) only as the content, and headers should not be folded
before the first word so, yeah, can't fold.

> As for the References header, *yes*, it can be and must often get
> folded; i.e., it may be a multi-line header.

This is totally against what I have seen in practice and seen
"documented" by Usenet posts. Consider:

https://groups.google.com/d/msg/news.software.misc/AeLPuWntcgM/lEx8p-TtRKYJ

Posted to news.software.misc in the year 2000, Johnny Favorite wrote:
    It gets trickier if the header gets really long.  You're not
    supposed to create a references header that's longer than 998 chars,
    contains more than 20 message IDs, or is "line-folded."  Of course
    some newsreaders do anyway but it's not good form.  What I do in my
    newsreader is always keep the root-level message ID no matter what
    so that it's possible to group together all messages that belong in
    the same thread.  If References is too long in a message I'm
    creating I start peeling them off at the second ID until I get it
    down to a max 20 IDs and 998 chars.

Note that the original RFC1036 doesn't mention folding vis-a-vis
References:, but does talk about editing it when it gets "too long",
which sounds to me like an implied "it's a single line" rule. At the end
of section "2.2.5. References":

     It is permissible to not include the entire previous "References"
     line if it is too long.  An attempt should be made to include a
     reasonable number of backwards references.

>                                                 Because References lists
> the hierarchy of a thread by the MIDs of each parent post, it definitely
> is allowed continuation lines.

In an ideal world, yes, but there's a lot of software out there and
netnews isn't the hot field of new development and bug fixes it once
was.

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

Not saying you are wrong, but I've never noticed that. Have a message ID
example? Something recent ideally so I could find it on my newserver.

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

The rule I've seen is minimum four message ids, first and last N, in
cronological order. Using your 200 message chain, that would be:

References: <mid1> <mid198> <mid199> <mid200>

You might have been saying that, but the introduction of N confuses it.

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

Since you've prompted me to consult the RFCs, 821 has 1000 octets as
the limit and includes the CRLF in that, hence 998.

>   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 interesting. How do they expect you to generate message IDs if
you go for the longest RFC1034 allowed domain name?

    To simplify implementations, the total number of octets that represent a
    domain name (i.e., the sum of all label octets and label lengths) is
    limited to 255.

Length: "?" (63)
Label: this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum
Accumulated-length: 64
Length: "?" (63)
Label: this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum
Accumulated-length: 128
Length: "?" (63)
Label: this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum
Accumulated-length: 192
Length: "?" (63)
Label: this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum
Accumulated-length: 192
Length: "7" (57)
Label: now-this-unexpected-a-label-only-57-octets-to-fit-dot-com
Length: \03 (3)
Label: com
Accumulated-length: 254
Final-root: \01
Accumulated-length: 255

Final domain name:

this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum.this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum.this-is-label-is-63-octets-in-length-label-rfc-1034-dns-maximum.now-this-unexpected-a-label-only-57-octets-to-fit-dot-com.com.

dig tells me there's no record for that, and gives me a "is not a legal
name (ran out of space)" error if I make it one longer, so I think the
RFC 1034 limits still hold.

> That's still a damn long 

DNS name. Yes, I agree.

> 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

People send stuff out which isn't valid all the time. In this case the
folding rule is one of the softer ones, like dash-dash-space.

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

As a long-ago moderator, I'll also say that follow-ups to non-moderated
groups is one good exception. It was also typical of FAQs to have a home
group for follow-ups even if posted to several. I will make a point of
using follow-ups to direct traffic where I think it is appropriate when
I join a thread with too many. I always include a comment when adding
such a header.

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

If people ask questions in groups that are not a good fit for answering
those questions, I feel obligated to direct traffic elsewhere.

>> ------
> Not a valid signature delimiter line.

What is a signature? In my mind it is a pre-composed bit of text
automatically appended to a post. I do not use signatures.

>> <off-topic signature>

No, it directly referenced the article I posted.

Elijah
------
can't force people to like these final lines, but won't use dash-dash-space
Technical Details
Message-ID: <eli$1903020051@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
References: <c18onk.9d4.19.1@news.alt.net> <eli$1903011515@qaz.wtf> <1brxy36ifclri.dlg@v.nguard.lh>

Show Full Headers
Complete Article Headers
Message-ID: <eli$1903020051@qaz.wtf>
Subject: Re: 80 character header limits?
Date: Sat, 02 Mar 2019 07:08:07 +0000
From: Eli the Bearded <*@eli.users.panix.com>
References: <c18onk.9d4.19.1@news.alt.net> <eli$1903011515@qaz.wtf> <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
Newsgroups: news.software.readers
Organization: Some absurd concept
Lines: 160
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader2.panix.com 1551510487 23180 166.84.1.5 (2 Mar 2019 07:08:07 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Sat, 2 Mar 2019 07:08:07 +0000 (UTC)
Keywords: VanguardLH VLH811
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
X-Comments: "'Pray that I don't alter the bargain further.'
  Welcome Darth Google."
  -- HonorableSoul
X-Received-Bytes: 8096
X-Received-Body-CRC: 2765792199