🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #256804

Re: Detecting threads

#256804
From: Sandman
Date: Fri, 24 Jan 2014 14:54
127 lines
7490 bytes
In article <lbtrr9$tgl$1@dont-email.me>, VanguardLH wrote:

> > Sandman:
> > So, if you have a database full of usenet posts, and access to all
> > headers - what is the best way to determine thread relationships?
> > The References header is the obvious first suggestion here, but
> > there is no guarantee that it will contain the Message-ID of the
> > original post.
> 
> If present, yes, the References header DOES list the parent post and
> its parent and its parent all the way up to the starter post. 
> Because of the recommended limit of 998 characters per line in the
> header section, very deep threads can extend the MID list onto
> additional lines.  A leading space character on each additional
> lines flags that line as a continuation line for the header line.

> The problem is the absence of the References header.  Clients don't
> add that header.  Its is built by the server.  Most NNTP servers
> have had the References header for over a decade now.  It's usually
> the web-based forums running an HTTP-to-NNTP gateway to pretend they
> have a larger community or provide a webnews-for-dummies interface
> to Usenet that may lack the References header.  After all, forums
> are flat which makes it difficult to see who said what to whom. 
> They don't have threading which is what the Reference header tracks.
> The HTTP-to-NNTP gateways are the bane of Usenet.

> Although Google is one of those gateways, it does add its own
> References header so threading is possible (outside of their
> childish webnews-based client).  My recollection was Google, after
> acquiring Deja News in 2001, was using the Subject header to thread
> the posts and didn't add a References header to posts submitted
> there as the injection node into Usenet.  I think after a couple
> years that they fixed that.  How old are these threads you are
> trying to read?  You sure you aren't hitting the expiration period
> (retention) by your Usenet provider (individual.net)? See:

> http://individual.net/faq.php#3.2 and
> http://news.individual.net/hierarchies.php

> 530 days is the retention interval for all their listed hierarchies.
> So threads that have posts over 1-1/2 years old are going to get
> truncated and possibly split apart.

> Before the References header became available and until it got
> adopted by the NNTP clients, the old scheme was to thread together
> posts based on the Subject header.  Well, many folks will tend to
> use the same short Subject string to ask the same question or
> address the same topic.  The result is that you would get posts
> strung together into threads that were not related to each other.

> RFC 733, section IV.B.3, defines the purpose of the References
> header. Section III.C defines its syntax.  That RFC was ratified
> back in 1977. While it may take 3-8 years for RFC changes to get
> implemented in NNTP servers, we're still talking about a header that
> should've been available in posts since mid-80's.  Give another 10
> years for slow adoption by clients and they should've been using
> that header to thread the posts back in the mid-90's.

> Have you found an NNTP client that won't thread together posts based
> on the References header?  How long ago was it coded?  Did you
> configure it to group by conversation (Subject)?

Very good informative reply!

The reason I said that the References header not always containing the OP 
is because I can swear that I've seen it happen. What I am 100% sure has 
happened, however, is that the References header being truncated - i.e. it 
does contain the OP and perhaps the 10-15 latest post in succession, but 
lacks older posts up until the OP. basically, the header would contain:

References: 1, 15, 16, 17 , 18, 19, 20, 21

If you get the meaning.

But if what you say is true - then I should just pick the first Message-ID 
in the References header, and then select all other posts that begin with 
the same Message-ID in that header, and that SHOULD get all posts for a 
thread, right?

> > Sandman:
> > So, also considering that you may not HAVE the original post in
> > the database, how would you go about to find all the available
> > posts in the thread and keep database requests low?
> 
> The client does the threading, not the server.  If the client
> receives posts but some are missing, like before some date (they
> expired on the server), then the client can only thread what posts
> it gets as best as it can.  Since threading goes backward to parent,
> grandparent, great grandparent, and so on, it's possible posts are
> no longer on the server so the subthreads get split up into separate
> threads in the client.

But, working from your claim above - all these posts would all share the OP 
Message-ID in the References header (in almost all cases) and thus that 
would be a common denominator for grouping them - even if actual visual 
threading can't be done for all.

> When you first subscribe to a newsgroup, and if you are retrieving
> posts from a very busy newsgroup with many thousands of posts still
> on the server, and since the posts in a thread aren't sequentially
> stored or retrieved, you might see what looks like incomplete or
> orphaned subthreads until you eventually get to downloading their
> common parent posts.  If you don't retrieve back far enough, you
> don't get those common parent posts.  Due to expiration of posts on
> the server, you may never retrieve those common parent posts -- but
> do you really care about ancient 2 to 5 year-old posts?

No I do not. But when I have 30 of say 100 posts, I still want them grouped 
together, and your claim above seems to make that possible.

> Yes, there is some value to ancient posts when researching a problem
> but Usenet wasn't designed to work as an archive.  Archives were to
> overcome the loss of history.  Some servers have long retetions in
> trying to keep threads more intact but smaller projects don't have
> as big a budget for the storage space.  Usenet providers aren't
> purposing their service to really strive at becoming an archive for
> Usenet.  That's why Deja News was a blessing.  That's why it was
> applauded when Google acquired Deja News instead of Deja News
> ceasing operations.  Alas, Google has destroyed the usability of
> that Usenet archive with the lack of searching options (author,
> group, date, etc) plus search results are as unfocused as is their
> web search.

Agreed.

-- 
Sandman[.net]
Technical Details
Message-ID: <slrnle4vrf.190.mr@irc.sandman.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnle4klj.hp.mr@irc.sandman.net> <lbtrr9$tgl$1@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <slrnle4vrf.190.mr@irc.sandman.net>
Subject: Re: Detecting threads
Date: Fri, 24 Jan 2014 14:54:20 +0000
From: Sandman <mr@sandman.net>
References: <slrnle4klj.hp.mr@irc.sandman.net> <lbtrr9$tgl$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 127
X-Trace: individual.net an6X2J+5IpibYZt8PGRH6wZWYXPtRJ60+0bpIcpSxx6jSUx8Y=
Cancel-Lock: sha1:Rn6TTjc+mK5Z0ON2G9rtvdDd3cs=
User-Agent: slrn/pre1.0.0-18 (Linux)
X-Original-Bytes: 7181