🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #256802

Re: Detecting threads

#256802
From: VanguardLH
Date: Fri, 24 Jan 2014 14:03
93 lines
6496 bytes
Sandman wrote:

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

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

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?  

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.
Technical Details
Message-ID: <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!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <slrnle4klj.hp.mr@irc.sandman.net>

Show Full Headers
Complete Article Headers
Message-ID: <lbtrr9$tgl$1@dont-email.me>
Subject: Re: Detecting threads
Date: Fri, 24 Jan 2014 08:03:20 -0600
From: VanguardLH <V@nguard.LH>
References: <slrnle4klj.hp.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!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Usenet denizen
Lines: 93
Sender: VanguardLH <>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Jan 2014 14:03:21 +0000 (UTC)
Injection-Info: mx05.eternal-september.org;
 posting-host="f65692f1328d27b9dd53e0170aa8b6f1";
 logging-data="30229"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX18nUue3YDQaxxSZHidjIamd+EJdMYdAOv8="
Keywords: VanguardLH VLH811
User-Agent: 40tude_Dialog/2.0.15.41
Cancel-Lock: sha1:dZkfxImw3Mm93t3ws69dm5w/AEA=
X-Original-Bytes: 6190