🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
14 messages
14 total messages Started by Adam H. Kerman Wed, 28 Oct 2009 05:04
Truncation of the string of Message-IDs in References
#82046
Author: Adam H. Kerman
Date: Wed, 28 Oct 2009 05:04
14 lines
1824 bytes
Could someone please refresh my memory as to why certain newsreaders would
truncate the Message-ID string on References to root plus the three most
recent precursor articles? Was there once an overall length of that header
that shouldn't be exceeded? Were there certain News servers that didn't
like a very long string?

Is there a practical reason why a client should still truncate that
header or could the entire string of Message-IDs be included, even if there
are a significant number of precursor messages?

I think I recall some discussion of it in Son Of but don't know where the
issue stands today.

Thanks.
Re: Truncation of the string of Message-IDs in References
#82048
Author: Russ Allbery
Date: Wed, 28 Oct 2009 05:39
43 lines
3049 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:

> Could someone please refresh my memory as to why certain newsreaders
> would truncate the Message-ID string on References to root plus the
> three most recent precursor articles? Was there once an overall length
> of that header that shouldn't be exceeded? Were there certain News
> servers that didn't like a very long string?

> Is there a practical reason why a client should still truncate that
> header or could the entire string of Message-IDs be included, even if
> there are a significant number of precursor messages?

Doing so will be required by the new document that will supersede 1036.
It's already gone through AUTH48 and is just waiting on USEFOR for
publication, so it's an RFC in everything but name and its normative
contents are frozen at this point.

   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.

http://tools.ietf.org/html/draft-ietf-usefor-usepro-14#section-3.4.3

Given that, at this point the only justification required is "because
that's what the standard says that you have to do," but as for why that's
in there, it's for interoperability.  Some clients and some servers have
trouble with References headers that exceed the RFC 5322 header length
limits when unfolded, and since the extra intermediate message IDs add
essentially zero useful information, there's no reason to risk the
interoperability problems.

There's also a minor practical benefit in that it avoids bloating overview
information with useless additional message IDs, which makes overview
downloads faster and more efficient for all clients.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Truncation of the string of Message-IDs in References
#82047
Author: Steve Crook
Date: Wed, 28 Oct 2009 10:16
10 lines
1341 bytes
On Tue, 27 Oct 2009 22:39:39 -0700, Russ Allbery wrote in
Message-Id: <87iqe0jcv8.fsf@windlord.stanford.edu>:

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

I really like the idea of retaining the first message identifier.
Hopefully it will make scoring entire threads easier.  Even better would
be a seperate header with just the seed Message-ID in it.
Re: Truncation of the string of Message-IDs in References
#82049
Author: Curt Welch
Date: Wed, 28 Oct 2009 18:35
31 lines
3005 bytes
Steve Crook <steve@mixmin.net> wrote:
> On Tue, 27 Oct 2009 22:39:39 -0700, Russ Allbery wrote in
> Message-Id: <87iqe0jcv8.fsf@windlord.stanford.edu>:
>
> >    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.
>
> I really like the idea of retaining the first message identifier.
> Hopefully it will make scoring entire threads easier.

That's been the standard for something like 15 to 20 years.  It's not some
new idea.  Any newsreader not doing it is broken (and sadly there have been
many broken newsreaders over the years).  The "new standard" is simply
trying to formalize what has been true for decades (in this area at least).

> Even better would
> be a seperate header with just the seed Message-ID in it.

Yes, that might be better, but not important enough in my view to justify
changing what has already been working for years.  To not break existing
code, would require duplicating the information by adding it to the new
seed header as well as leaving it in the References: header and then you
are both wasting space and causing confusion.  Which header should a
newsreader use?  What should it trust when the seed header doesn't match
the first id in the Message-id?  The problems such a conversion would
create doesn't really justify the minimal gain in functionality.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: Truncation of the string of Message-IDs in References
#82050
Author: Adam H. Kerman
Date: Wed, 28 Oct 2009 23:02
32 lines
2823 bytes
Russ Allbery <rra@stanford.edu> wrote:
>"Adam H. Kerman" <ahk@chinet.com> writes:

>>Could someone please refresh my memory as to why certain newsreaders
>>would truncate the Message-ID string on References to root plus the
>>three most recent precursor articles? Was there once an overall length
>>of that header that shouldn't be exceeded? Were there certain News
>>servers that didn't like a very long string?

>>Is there a practical reason why a client should still truncate that
>>header or could the entire string of Message-IDs be included, even if
>>there are a significant number of precursor messages?

>Doing so will be required by the new document that will supersede 1036.
>It's already gone through AUTH48 and is just waiting on USEFOR for
>publication, so it's an RFC in everything but name and its normative
>contents are frozen at this point.

Ah. So it is in Grandson-Of. Thanks.

>Given that, at this point the only justification required is "because
>that's what the standard says that you have to do," but as for why that's
>in there, it's for interoperability.  Some clients and some servers have
>trouble with References headers that exceed the RFC 5322 header length
>limits when unfolded, and since the extra intermediate message IDs add
>essentially zero useful information, there's no reason to risk the
>interoperability problems.

Someone pointed out that it made it difficult to kill all subsequent followups
to a particular message in a thread tree without the intervening Message-IDs.

I couldn't recall where the header length limit was. Thanks.
Re: Truncation of the string of Message-IDs in References
#82051
Author: Steve Crook
Date: Thu, 29 Oct 2009 09:14
17 lines
1767 bytes
On 28 Oct 2009 18:35:48 GMT, Curt Welch wrote in
Message-Id: <20091028142934.736$wx@newsreader.com>:

> That's been the standard for something like 15 to 20 years.  It's not some
> new idea.  Any newsreader not doing it is broken (and sadly there have been
> many broken newsreaders over the years).  The "new standard" is simply
> trying to formalize what has been true for decades (in this area at least).

Hi Curt,

Thanks for the correction, I wasn't aware it was a standard already.
I've tried on numerous occasions to score threads based on the original
Message-ID in the References and it's proven to be unreliable, simply
because it only takes one broken reader to strip it out.

I'm not sure if formalizing the behaviour will help prevent such broken
readers but I guess time will tell.
Re: Truncation of the string of Message-IDs in References
#82052
Author: Curt Welch
Date: Thu, 29 Oct 2009 12:15
52 lines
4094 bytes
Steve Crook <steve@mixmin.net> wrote:
> On 28 Oct 2009 18:35:48 GMT, Curt Welch wrote in
> Message-Id: <20091028142934.736$wx@newsreader.com>:
>
> > That's been the standard for something like 15 to 20 years.  It's not
> > some new idea.  Any newsreader not doing it is broken (and sadly there
> > have been many broken newsreaders over the years).  The "new standard"
> > is simply trying to formalize what has been true for decades (in this
> > area at least).
>
> Hi Curt,
>
> Thanks for the correction, I wasn't aware it was a standard already.
> I've tried on numerous occasions to score threads based on the original
> Message-ID in the References and it's proven to be unreliable, simply
> because it only takes one broken reader to strip it out.

Yes, that's very true.  And after the broken reader strips it out, all the
readers doing the right thing _look_ like they are broken as well even
though they are not because they are producing follow-ups that are missing
the correct seed ID.  And then when someone writing yet another reader
looks at posts to try and figure out what they are supposed to put in the
References line, and see that even the most popular readers seem to be
putting some random collection of Message-ids into the header, they just
assume there is no real standard about what to put in it.

A more advanced reader will actually re-build the follow-up tree by
scanning all the messages in the tree it can find and then re-build the
References not just from the single message it is following-up to, but
based on it's best guess at the correct follow-up tree.

> I'm not sure if formalizing the behaviour will help prevent such broken
> readers but I guess time will tell.

Having a standard that defines what to do in a place where people might
actually find it could only help.

It's been formalized here since 1997 or so (see #7):

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

The problem is that people write, or modify their newsreaders without
checking the standards all too often - or simply find and check the wrong
standard, like RFC 1036 without realizing that Usenet has some of its own
standards separate from the RFCs.  The usefor group has been working on a
new standard since what seems like forever.  15 years?  Glad to see it's
getting close to getting somewhere.  I can only guess it's Russ's efforts
making that happen.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: Truncation of the string of Message-IDs in References
#82053
Author: Russ Allbery
Date: Thu, 29 Oct 2009 16:28
16 lines
1894 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:

> Someone pointed out that it made it difficult to kill all subsequent
> followups to a particular message in a thread tree without the
> intervening Message-IDs.

Yeah, that's a good point.  I hadn't thought about that, nor do I think
that was mentioned in the discussion at the time.  The news reader is
unfortunately going to have to do more work to track subsequent posts in
the thread and add them to the references killfile.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Truncation of the string of Message-IDs in References
#82054
Author: Russ Allbery
Date: Thu, 29 Oct 2009 16:30
18 lines
2126 bytes
curt@kcwc.com (Curt Welch) writes:

> The problem is that people write, or modify their newsreaders without
> checking the standards all too often - or simply find and check the
> wrong standard, like RFC 1036 without realizing that Usenet has some of
> its own standards separate from the RFCs.  The usefor group has been
> working on a new standard since what seems like forever.  15 years?
> Glad to see it's getting close to getting somewhere.  I can only guess
> it's Russ's efforts making that happen.

There were serveral people involved in pushing, and in particular Charles
Lindsey deserves most of the credit, IMO.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Truncation of the string of Message-IDs in References
#82056
Author: Curt Welch
Date: Thu, 29 Oct 2009 20:41
21 lines
2163 bytes
Russ Allbery <rra@stanford.edu> wrote:
> "Adam H. Kerman" <ahk@chinet.com> writes:
>
> > Someone pointed out that it made it difficult to kill all subsequent
> > followups to a particular message in a thread tree without the
> > intervening Message-IDs.
>
> Yeah, that's a good point.  I hadn't thought about that, nor do I think
> that was mentioned in the discussion at the time.  The news reader is
> unfortunately going to have to do more work to track subsequent posts in
> the thread and add them to the references killfile.

Yeah, that is a good point.  But the only solution is to not truncate
References: and that simply isn't very workable since there's no limit to
how long a thread can grow.  It just doesn't make much sense to put 100
message-ids in the header of articles which are part of a very long lived
thread.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
Re: Truncation of the string of Message-IDs in References
#82057
Author: Russ Allbery
Date: Thu, 29 Oct 2009 20:44
28 lines
2354 bytes
curt@kcwc.com (Curt Welch) writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> "Adam H. Kerman" <ahk@chinet.com> writes:

>>> Someone pointed out that it made it difficult to kill all subsequent
>>> followups to a particular message in a thread tree without the
>>> intervening Message-IDs.

>> Yeah, that's a good point.  I hadn't thought about that, nor do I think
>> that was mentioned in the discussion at the time.  The news reader is
>> unfortunately going to have to do more work to track subsequent posts
>> in the thread and add them to the references killfile.

> Yeah, that is a good point.  But the only solution is to not truncate
> References: and that simply isn't very workable since there's no limit
> to how long a thread can grow.  It just doesn't make much sense to put
> 100 message-ids in the header of articles which are part of a very long
> lived thread.

Given that, I suppose I would recommend to news reader authors that they
not trim references until they have to, which would suffice to keep a
complete picture for all but the most long-lived threads.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Truncation of the string of Message-IDs in References
#82058
Author: D. Stussy
Date: Fri, 30 Oct 2009 00:13
37 lines
3171 bytes
"Curt Welch" <curt@kcwc.com> wrote in message
news:20091029163541.462$lW@newsreader.com...
> Russ Allbery <rra@stanford.edu> wrote:
> > "Adam H. Kerman" <ahk@chinet.com> writes:
> > > Someone pointed out that it made it difficult to kill all subsequent
> > > followups to a particular message in a thread tree without the
> > > intervening Message-IDs.
> >
> > Yeah, that's a good point.  I hadn't thought about that, nor do I think
> > that was mentioned in the discussion at the time.  The news reader is
> > unfortunately going to have to do more work to track subsequent posts
in
> > the thread and add them to the references killfile.
>
> Yeah, that is a good point.  But the only solution is to not truncate
> References: and that simply isn't very workable since there's no limit to
> how long a thread can grow.  It just doesn't make much sense to put 100
> message-ids in the header of articles which are part of a very long lived
> thread.

Considering that the BNF syntax indicates that the newer messages appear at
the beginning of the header data (and older messages appear at the end),
truncation will be removing the earlier (older) messages.  However, as the
newer messages that weren't truncated will still have that data that was
lost as one traces back toward the original message which started the
thread, no data (message IDs of all prior messages in the thread structure)
should be lost.  So where's the problem?

Traversing a thread tree from a reply to its original posting may be a
little more difficult but remains clearly possible.

Traversing a thread tree from the original posting to all its replies is
always problematic - as such is counter to the direction of the linkages
between messages in a thread.  One has to scan ALL messages (using the
References header) within the given groups in order to pick up all replies.

Re: Truncation of the string of Message-IDs in References
#82059
Author: Garrett Wollman
Date: Fri, 30 Oct 2009 01:06
25 lines
2627 bytes
In article <hcdb2m$47c$1@snarked.org>,
D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote:

>Considering that the BNF syntax indicates that the newer messages appear at
>the beginning of the header data (and older messages appear at the end),
>truncation will be removing the earlier (older) messages.  However, as the
>newer messages that weren't truncated will still have that data that was
>lost as one traces back toward the original message which started the
>thread, no data (message IDs of all prior messages in the thread structure)
>should be lost.  So where's the problem?

Some threads go on for many months.  Unless you have ridiculously long
expiration, truncation of References means that eventually the
articles you need to examine to reconstruct the tree will no longer be
available.  (At least Google only mangles message-ids in the bodies of
articles -- most of the threads of this sort that I've seen recently
have died out and then been reenergized by a few postings from a
far-behind-current Google Groups user.)

-GAWollman
-- 
Garrett A. Wollman    | What intellectual phenomenon can be older, or more oft
wollman@bimajority.org| repeated, than the story of a large research program
Opinions not shared by| that impaled itself upon a false central assumption
my employers.         | accepted by all practitioners? - S.J. Gould, 1993
Re: Truncation of the string of Message-IDs in References
#82061
Author: Curt Welch
Date: Fri, 30 Oct 2009 16:30
87 lines
5953 bytes
wollman@bimajority.org (Garrett Wollman) wrote:
> In article <hcdb2m$47c$1@snarked.org>,
> D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote:
>
> >Considering that the BNF syntax indicates that the newer messages appear
> >at the beginning of the header data (and older messages appear at the
> >end),

I don't know what BNF you are looking at, but Usenet References: headers
work the other way. The oldest is at the beginning and the newest are at
the end.

The first one is the root of the tree, and the last one is the one the
article is following up to.

> >truncation will be removing the earlier (older) messages.

Truncation of References: headers is done in a very specific way - not by
simply stripping characters or message-ids from the end.  It's done by
removing the second Message-ID in the list (repeatedly).

This allows the root Message-ID to be saved which acts as the tree
identifier.  It makes threading and killing by thread easier if all the
articles have valid message-ids because it allows you to quickly lump all
the articles in the same tree together without requiring link traversal and
tree reconstruction.

Correctly identifying sub-trees however is not easy if some of the sub-tree
roots have been deleted from the References: headers.

> >However, as the newer messages that weren't truncated will still have
> >that data that was lost as one traces back toward the original message
> >which started the thread, no data (message IDs of all prior messages in
> >the thread structure) should be lost.  So where's the problem?

Well, you have it backwards, so your logic doesn't work.  If some
newsreader or news server does an indiscriminate truncate on the line
(which has been known to happen on rally crappy newsreaders), the most
important back link (the articles immediate parent) will be lost making it
very difficult to correctly construct the follow-up tree.  It would require
scanning the article bodies and trying to identify quoted text from the
parent articles to guess at a correct tree structure.  I'm not aware of any
newsreader that has gone to that level of effort to try and correctly
reconstruct thread trees.

> Some threads go on for many months.  Unless you have ridiculously long
> expiration, truncation of References means that eventually the
> articles you need to examine to reconstruct the tree will no longer be
> available.

Yes, and sometimes because of services like Google, a thread comes back to
life many years or even decades later. :)  Though for these rare cases,
it's really not important in my view if the tree is not correctly
represented. :)

The more real problem is simply when threads live longer than the retention
of the server someone is reading articles from.  Most newsreader that
attempt to do a good job at threading maintain local thread/article data so
as long as the newsreader got to see the articles before it expired, it
will have the data it needs to correctly display the thread tree.

>(At least Google only mangles message-ids in the bodies of
> articles -- most of the threads of this sort that I've seen recently
> have died out and then been reenergized by a few postings from a
> far-behind-current Google Groups user.)
>
> -GAWollman

I've use Usenet for about 20 years and in all this time, I've never used
(on a regular basis) a newsreader that did true threading.  The one's I've
used only did subject based threading.  I don't feel like I've really
missed much.  So for me, the References: header is not even all that
important.  Being able to traverse the follow-up tree backwards to the root
is good so you can quickly verify what people wrote and what you wrote, but
only the parent link is needed to implement that.

My only issue with this whole subject of References: headers is that there
is a old and established standard for how the header should be constructed
and any newsreader that is used to post a follow-up damn will better be
creating valid References: headers for all those newsreaders that do use
the header to reconstruct the thread tree and display it and offer various
UI features based on a correctly reconstructed tree.  There's just no
(good) excuse for not doing it correctly.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                                        http://NewsReader.Com/
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