🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #64008

Re: sort headers by subject algorithm

#64008
From: Colin Wilson
Date: Wed, 12 Feb 2003 10:06
28 lines
1822 bytes
Samiad wrote:

> I am currently investigating suitable algorithms for generating a
> typical threaded view for newsgroup headers, sorted by subject.  The
> sort your conventional newsgroup reader might use (replies go just
> below the replied message).
> 
> This is also the same sort of thing used in web bulletin board
> systems.
> 
> Can anyone point me to a resource where I can examine such code?  Any
> language or pseudocode would be perfect!

Have a look at http://www.jwz.org/doc/threading.html for Jamie 
Zawinski's threading algorithm.  There's pseudocode there.

XanaNews uses this algorithm for it's threading.  It's free and comes 
with source in Delphi, so you can have a look at how I implement it, 
too.


-- 
Colin
e-mail :colin@wilsonc.demon.co.uk
web: http://www.wilsonc.demon.co.uk/delphi.htm

Posted with XanaNews 1.13.2.6
Technical Details
Message-ID: <1045044386.38289.0@iris.uk.clara.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!mephistopheles.news.clara.net!newspeer.clara.net!news.clara.net!iris.uk.clara.net
References: <3e499c1d.56495214@news.claranews.net>

Show Full Headers
Complete Article Headers
Message-ID: <1045044386.38289.0@iris.uk.clara.net>
Subject: Re: sort headers by subject algorithm
Date: Wed, 12 Feb 2003 10:06:26 +0000
From: "Colin Wilson" <colin@wilsonc.demon.co.uk>
References: <3e499c1d.56495214@news.claranews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!mephistopheles.news.clara.net!newspeer.clara.net!news.clara.net!iris.uk.clara.net
Newsgroups: news.software.nntp
User-Agent: XanaNews/1.13.2.6
X-Complaints-To: abuse@clara.net (please include full headers)
X-Trace: 277cd47a04713741cf006990e60030006ac3b7005590126ce60c70903e4a1ca2
NNTP-Posting-Date: Wed, 12 Feb 2003 10:06:26 +0000
Lines: 27