🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Gap Fri, 20 Sep 2002 16:03
Hierarchy of individual message subject
#60533
Author: Gap
Date: Fri, 20 Sep 2002 16:03
22 lines
1751 bytes
I'm writing yet another web-based usenet client for a specific
news group (on a web page following that same topic)... and
cannot figure out how do news clients like Outlook group
messages following the same subject into that nice
hierarchical display (with pluses and minuses)...

All I get is this for example:
====================
Subject: teessttttt
From: Robert
Date: Sat, 22 Jun 2002 14:03:16 +0200
Message-ID: <3D146784.2000303@net.hr>
References: 743
Bytes: 2
Lines: Xref: news1.hinet.hr hr.test:19261
Xref:

One would think that its to do with references, but they often
do not appear... any hint/help would be well appreciated!


Re: Hierarchy of individual message subject
#60535
Author: Curt Welch
Date: Fri, 20 Sep 2002 16:30
59 lines
3225 bytes
"Gap" <flash@hi.hinet.hr> wrote:
> I'm writing yet another web-based usenet client for a specific
> news group (on a web page following that same topic)... and
> cannot figure out how do news clients like Outlook group
> messages following the same subject into that nice
> hierarchical display (with pluses and minuses)...
>
> All I get is this for example:
> ====================
> Subject: teessttttt
> From: Robert
> Date: Sat, 22 Jun 2002 14:03:16 +0200
> Message-ID: <3D146784.2000303@net.hr>
> References: 743
> Bytes: 2
> Lines: Xref: news1.hinet.hr hr.test:19261
> Xref:
>
> One would think that its to do with references, but they often
> do not appear... any hint/help would be well appreciated!

It is the References:.  References only appear in follow-up articles.
i.e., in theory, any article with Re: in the subject should whave a
References: header, and any without, (like your example above) will not.

The References: lists the References: from the article it is a follow-up to
combined with the Message-ID of that article.

So, the first post of a new thread could be:

  Subject: Hello!
  Message-ID: <a@net>

Then comes:

  Subject: Re: Hello
  Message-ID: <b@com>
  References: <a@net>

Then a followup up to the second message would read:

  Subject: Re: Hello
  Message-ID: <e@org>
  References: <a@net> <b@com>

To produce a thread display, you have to write some fairly complex code to
match all this stuff up.  It's compex because there's no guarantee that
References: headers are valid.  Many times they are not.  You just have to
use the information there and re-build the follow-up tree as best you can.
You have to decide if an article with a subject of "Re: Hello" but no
References: should be placed in the same thread as the ones above, or let
it start a new thread of it's own.  Your code has to decide where to put an
article which lists References: to messages that don't show up on the
newsserver, but which do match other Subjects in the same group, etc.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Hierarchy of individual message subject
#60561
Author: Jeremy
Date: Fri, 20 Sep 2002 22:14
13 lines
1292 bytes
Gap <flash@hi.hinet.hr> wrote:

> I'm writing yet another web-based usenet client for a specific
> news group (on a web page following that same topic)... and
> cannot figure out how do news clients like Outlook group
> messages following the same subject into that nice
> hierarchical display (with pluses and minuses)...

Good explanation here:  http://www.jwz.org/doc/threading.html

-- 
Jeremy  |  jeremy@exit109.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