Article View: news.software.nntp
Article #64005Re: sort headers by subject algorithm
From: J.B. Moreno
Date: Wed, 12 Feb 2003 03:20
Date: Wed, 12 Feb 2003 03:20
25 lines
1810 bytes
1810 bytes
In article <3e499c1d.56495214@news.claranews.net>, Samiad <ylsf@hotmail.com> wrote: > Hello all, > > 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! First off, you're not actually talking about sorting, you're talking about threading -- you can do it as a sorting (sorta) using the References header, but not using the Subject. Anyway, take a look at the code in trn, slrn, or tin. -- J.B. Moreno
Technical Details
Message-ID:
<110220032220564260%planb@newsreaders.com>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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!troll.newsreader.com!planbReferences:
<3e499c1d.56495214@news.claranews.net>Show Full Headers
Complete Article Headers
Message-ID: <110220032220564260%planb@newsreaders.com> Subject: Re: sort headers by subject algorithm Date: Tue, 11 Feb 2003 22:20:56 -0500 From: "J.B. Moreno" <planb@newsreaders.com> 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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed1.newsreader.com!newsreader.com!news2.newsreader.com!troll.newsreader.com!planb Newsgroups: news.software.nntp MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 8bit User-Agent: Thoth/1.7.0 (Carbon/OS X) X-Face: ]lUBtDImSD_`E"<*ZgyJUoCT\=CdRLFX4qCMLK[xy^L7v|uX|f8`cFDd*PaH8 N*x>d^h X-Trace: troll.newsreader.com gSpW1h+lkj9dgk5D-upPtm@9xOimwn-yM5-RSg_mrMsh0XXM Lines: 24