🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by dale Fri, 01 Mar 2019 20:03
80 character header limits?
#263252
Author: dale
Date: Fri, 01 Mar 2019 20:03
5 lines
915 bytes
What newsreaders have 80 character header limits? I like to crosspost to 
broaden the audience.

-- 
dale - https://www.dalekelly.org/
Re: 80 character header limits?
#263245
Author: Eli the Bearded
Date: Fri, 01 Mar 2019 20:15
17 lines
1958 bytes
In news.software.readers, dale  <dale@dalekelly.org> wrote:
> What newsreaders have 80 character header limits? I like to crosspost to 
> broaden the audience.

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. Only a few headers are
limited to a single line, off the top of my head: Path:, References:,
and Newsgroups:.

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.

Elijah
------
droping bricks on your fingers a good subsitute
Re: 80 character header limits?
#263246
Author: dale
Date: Fri, 01 Mar 2019 20:54
30 lines
1905 bytes
On 3/1/2019 3:15 PM, Eli the Bearded wrote:
> In news.software.readers, dale  <dale@dalekelly.org> wrote:
>> What newsreaders have 80 character header limits? I like to crosspost to
>> broaden the audience.
> 
> 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. Only a few headers are
> limited to a single line, off the top of my head: Path:, References:,
> and Newsgroups:.

I had a follow-up to one of my posts that put some spaces after a number 
of characters. The other Newgroups were after there; just not valid.

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

spelling error ... can't compute

> Elijah
> ------
> droping bricks on your fingers a good subsitute
> 


-- 
dale - https://www.dalekelly.org/
Re: 80 character header limits?
#263250
Author: 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>
Re: 80 character header limits?
#263254
Author: 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
Re: 80 character header limits?
#263255
Author: Michael Bäuerle
Date: Sat, 02 Mar 2019 13:44
117 lines
6267 bytes
Eli the Bearded wrote:
> In news.software.readers, VanguardLH <V@nguard.LH> followed up to me:
> > 
> > [...]
> > As for the References header, *yes*, it can be and must often get
> > folded; i.e., it may be a multi-line header.

According to RFC 5536 [1] it can be folded (as part of CFWS).
But such folding is never required because of the length limit,
see below.

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

This was later named "trimming".

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

RFC 1036 is obsolete since a decade. The current RFC 5537 [2] says:
| 
| If the resulting References header field would, after unfolding,
| exceed 998 characters in length (including its field name but not the
| final CRLF), it MUST be trimmed (and otherwise MAY be trimmed).
| Trimming means removing any number of message identifiers from its
| content, except that the first message identifier and the last two
| MUST NOT be removed.

The algorithm above ("peeling them off at the second ID [...]") is fully
compliant.

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

You simply can't use such a domain name to create a valid RFC 5536
Message-ID (such long domain names should be an academic case anyway).

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

I use Xpost and Followup-To for announcements. Normally they should only
be informative (not for discussion), but if somebody has a question the
Followup-To should be used.
Yes, I read all groups that I Xpost to and the Followup-To is just my
suggestion for a potential discussion (e.g. if one of the groups is
from the german hierarchy, I think this group is not a good place for
discussion because there are likely more people that speak english than
german).


__________________
[1] <https://tools.ietf.org/html/rfc5536#section-3.2.10>
[2] <https://tools.ietf.org/html/rfc5537#section-3.4.4>
Re: 80 character header limits?
#263463
Author: VanguardLH
Date: Tue, 26 Mar 2019 08:45
77 lines
4148 bytes
Eli the Bearded wrote:

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

That post citest the author's preference.  He does not cite an RFC to
support his opinion.  Michael provides an RFC for reference.

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

I don't memorize examples.  I would have to go searching for one.  That
I encountered that troll scheme is why I remember it.

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

So when given an example, you dismiss it.  Uh huh, yeah, I get it now.

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

Oh, so now that bit of text at the end is really supposed to be on-topic
to the body of your post.  Uh huh.  Sorry, but sigblocks have a de facto
definition, not whatever you want to use.

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

Not in your post to which I replied, which had a fake signature of:

------
droping bricks on your fingers a good subsitute

Then you changed your signature in your *reply* to mine so that
signature was on-topic.  Look at the datestamp order of the posts.
Obviously I could not reply nor cite content in a post you submitted
after mine.

You added content to present as a signature but did not use a valid
signature delimiter line.
Re: 80 character header limits?
#263469
Author: Eli the Bearded
Date: Tue, 26 Mar 2019 18:19
38 lines
2874 bytes
In news.software.readers, VanguardLH  <V@nguard.LH> wrote:
> That post citest the author's preference.  He does not cite an RFC to
> support his opinion.  Michael provides an RFC for reference.

The only RFC then was 1066 which had not kept up to date with the
practice of news.

> So when given an example, you dismiss it.  Uh huh, yeah, I get it now.

To me it falls under the SHOULD category of software behaviors as SHOULD
is used in modern RFCs.

> Oh, so now that bit of text at the end is really supposed to be on-topic
> to the body of your post.  Uh huh.  Sorry, but sigblocks have a de facto
> definition, not whatever you want to use.

And what is your de facto definiton of a sigblock? Shit you want to
ignore? I can't force you to read it, but it's something I consider
relevant to the article.

> > No, it directly referenced the article I posted.
> Not in your post to which I replied, which had a fake signature of:
> ------
> droping bricks on your fingers a good subsitute

That was a continuation of the thought in the previous paragragh. For
reference that paragraph was:

    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.

I'm saying dropping bricks on your fingers is a good subsitute for
banging your head against the table.

Elijah
------
remembers people doing Firstname "Comment here" Lastname and adapted it
Re: 80 character header limits?
#263503
Author: VanguardLH
Date: Thu, 28 Mar 2019 06:27
159 lines
8414 bytes
Michael Bäuerle wrote:

> Eli the Bearded wrote:
>> In news.software.readers, VanguardLH <V@nguard.LH> followed up to me:
>>> 
>>> [...]
>>> As for the References header, *yes*, it can be and must often get
>>> folded; i.e., it may be a multi-line header.
> 
> According to RFC 5536 [1] it can be folded (as part of CFWS).
> But such folding is never required because of the length limit,
> see below.
> 
>> 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.
> 
> This was later named "trimming".
> 
>> 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.
> 
> RFC 1036 is obsolete since a decade. The current RFC 5537 [2] says:
>| 
>| If the resulting References header field would, after unfolding,
>| exceed 998 characters in length (including its field name but not the
>| final CRLF), it MUST be trimmed (and otherwise MAY be trimmed).
>| Trimming means removing any number of message identifiers from its
>| content, except that the first message identifier and the last two
>| MUST NOT be removed.
> 
> The algorithm above ("peeling them off at the second ID [...]") is fully
> compliant.
> 
>>> [...]
>> 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
> 
> You simply can't use such a domain name to create a valid RFC 5536
> Message-ID (such long domain names should be an academic case anyway).
> 
>>> [...]
>>> 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.
> 
> I use Xpost and Followup-To for announcements. Normally they should only
> be informative (not for discussion), but if somebody has a question the
> Followup-To should be used.
> Yes, I read all groups that I Xpost to and the Followup-To is just my
> suggestion for a potential discussion (e.g. if one of the groups is
> from the german hierarchy, I think this group is not a good place for
> discussion because there are likely more people that speak english than
> german).
> 
> __________________
> [1] <https://tools.ietf.org/html/rfc5536#section-3.2.10>
> [2] <https://tools.ietf.org/html/rfc5537#section-3.4.4>

I looked at RFC 5322 on the Message-ID header.  In section , the msg-id
definition doesn't specify the maximum size of the id-left and id-right
tokens, as in <id-left@id-right>.  The RFC says msg-id is a limited form
of the addr-spec token, so I looked at that in section 3.4.  Still no
mention of maximums for the local-part and domain tokens, as in
<local-part@domain>.

With no specified maximums in the RFC, it seems a Message-ID's value
could be up to 986 characters long:

Message-ID: <id-left@id-right>
\_12 chars_/\___986 chars____/
\__________998 chars_________/

If you are correct that the unrolled maximum length for the References
header is still 998 characters, then its value's maximum length is also
986 characters, as in:

References: {message-id-list}
\_12 chars_/\___986 chars___/
\__________998 chars________/

If a troll used an excessily long msg-id of 986 characters, that means
the References header could contain only 1 Message-ID value, which must
the parent of an entire subthread.  The subthread could be quite deep,
but a troll's reply with the excessively long msg-id would have its
References header pointing to the upmost parent of a [sub]thread.
Although a reply, the article would get threaded under the first article
in the thread.  The troll doesn't need to use a 986-character msg-id
value.  It could be 200 characters long and after a few replies by the
troll the threading gets screwed up due to truncating the References
header.

What limits, if anything, the maximum length of the Message-ID header's
value (the msg-id value)?  While the domain token may be limited to 255
octets, what limits the length of the local-part or id-left tokens?  On
just the 255 limit on the domain or id-right tokens, it wouldn't take
many replies by a poster with such a hugely long token to end up causing
References to get truncated (trimmed) to screw up the threading with
just a 998-char limit on the header length.
Re: 80 character header limits?
#263504
Author: Michael Bäuerle
Date: Thu, 28 Mar 2019 10:00
112 lines
6287 bytes
VanguardLH wrote:
> Michael Bäuerle wrote:
> > Eli the Bearded wrote:
> > > In news.software.readers, VanguardLH <V@nguard.LH> followed up to me:
> > > > 
> > [...] The current RFC 5537 [2] says:
> > | 
> > | If the resulting References header field would, after unfolding,
> > | exceed 998 characters in length (including its field name but not the
> > | final CRLF), it MUST be trimmed (and otherwise MAY be trimmed).
> > | Trimming means removing any number of message identifiers from its
> > | content, except that the first message identifier and the last two
> > | MUST NOT be removed.
> > 
> > The algorithm above ("peeling them off at the second ID [...]") is fully
> > compliant.
> > 
> > > [...]
> > > 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."
> > [...]
>  
> I looked at RFC 5322 on the Message-ID header.  In section , the msg-id
> definition doesn't specify the maximum size of the id-left and id-right
> tokens, as in <id-left@id-right>.  The RFC says msg-id is a limited form
> of the addr-spec token, so I looked at that in section 3.4.  Still no
> mention of maximums for the local-part and domain tokens, as in
> <local-part@domain>.
> 
> With no specified maximums in the RFC, it seems a Message-ID's value
> could be up to 986 characters long:
> 
> Message-ID: <id-left@id-right>
> \_12 chars_/\___986 chars____/
> \__________998 chars_________/
> 
> If you are correct that the unrolled maximum length for the References
> header is still 998 characters, then its value's maximum length is also
> 986 characters, as in:
> 
> References: {message-id-list}
> \_12 chars_/\___986 chars___/
> \__________998 chars________/

But only for Mail. For News the length is limited by RFC 5536 [3] to
250 octets (including the angle brackets). This always allows the
trimming algorithm required by [2] to place the mandatory three MIDs.

References: {maximum-length-mid} {maximum-length-mid} {maximum-length-mid}
\_12 chars_/\____250 chars_____/1\____250 chars_____/1\____250 chars_____/
\_______________________________764 chars________________________________/

Any potential CFWS can be stripped to SP (if it should be too long),
therefore the length 1 for the delimiters in the calculation above.
This is specific to News too (for Mail back-to-back MIDs are allowed).

> If a troll used an excessily long msg-id of 986 characters, that means
> the References header could contain only 1 Message-ID value, which must
> the parent of an entire subthread.  The subthread could be quite deep,
> but a troll's reply with the excessively long msg-id would have its
> References header pointing to the upmost parent of a [sub]thread.
> Although a reply, the article would get threaded under the first article
> in the thread.  The troll doesn't need to use a 986-character msg-id
> value.  It could be 200 characters long and after a few replies by the
> troll the threading gets screwed up due to truncating the References
> header.

Such an article should not reach the network according to RFC 5537 [4]:
| 
| An injecting agent processes proto-articles as follows:
| [...]
| 2.   It MUST reject any proto-article that does not have the proper
|      mandatory header fields for a proto-article, that has Injection-
|      Info or Xref header fields, that has a Path header field
|      containing the "POSTED" <diag-keyword>, or that is not
|      syntactically valid as defined by [RFC5536]. [...]
       ^^^^^^^^^^^^^^^^^^^

If such an article nevertheless have passed injection, then it may not
work correctly (like any other syntactically invalid article).
 
> What limits, if anything, the maximum length of the Message-ID header's
> value (the msg-id value)?

<msg-id> is limited by [3] to 250 octets.

> While the domain token may be limited to 255
> octets, what limits the length of the local-part or id-left tokens?

I think both can have arbitrary length (at least <dot-atom-text> has no
length limit) as long as the 250 octet limit for the whole <msg-id> is
respected.

> On
> just the 255 limit on the domain or id-right tokens, it wouldn't take
> many replies by a poster with such a hugely long token to end up causing
> References to get truncated (trimmed) to screw up the threading with
> just a 998-char limit on the header length.

In general a (folded) header field has no length limit at all.
Therefore both values (250 for <msg-id> and 998 for the whole References
header field) are artificial limits only for News.


> > __________________
> > [2] <https://tools.ietf.org/html/rfc5537#section-3.4.4>
[3] <https://tools.ietf.org/html/rfc5536#section-3.1.3>
[4] <https://tools.ietf.org/html/rfc5537#section-3.5>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads