Article View: news.software.nntp
Article #75990Re: message threading
From: Jeffrey M. Vinocur
Date: Fri, 30 Mar 2007 14:22
Date: Fri, 30 Mar 2007 14:22
33 lines
2401 bytes
2401 bytes
In article <1175255091.289755.201960@o5g2000hsb.googlegroups.com>,
startrak <riks.patel@gmail.com> wrote:
>
>I am writing my own newsreader client (c++) for a project at
>university and I'm finding the message threading part very difficult
>indeed. I've looked at Jamie Zawinski's message threading website and
>found it complicated, is there any other websites perhaps with
>tutorials on how to implement it?
That's the best I've seen. I think you have three options:
(1) You can implement a low-quality algorithm (e.g. group
articles that have the same Subject line, without looking at
the References header) or a medium-quality algorithm (e.g.
cross your fingers and hope that all of the References
headers are correct, and use them naively), which would be
inadequate in the real world but might be enough for your
project.
(2) If your class guidelines permit you to do so, you can look
at any of the many open-source newsreaders out there and see
how they implement threading.
(3) You can get a good cup of coffee and try to implement JWZ's
algorithm. If you're only doing newsgroups (not email), you
can probably skip all the parts about In-Reply-To. This
will probably be the most educational approach, although it
may require more work.
--
Jeffrey M. Vinocur
jeff@litech.org
Technical Details
Message-ID:
<euj6f7$iip$1@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!news.glorb.com!news.litech.org!not-for-mailReferences:
<1175255091.289755.201960@o5g2000hsb.googlegroups.com>Show Full Headers
Complete Article Headers
Message-ID: <euj6f7$iip$1@puck.litech.org> Subject: Re: message threading Date: Fri, 30 Mar 2007 14:22:31 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <1175255091.289755.201960@o5g2000hsb.googlegroups.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!news.glorb.com!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 33 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1175264551 19033 66.218.0.75 (30 Mar 2007 14:22:31 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Fri, 30 Mar 2007 14:22:31 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)