Thread View: news.software.nntp
2 messages
2 total messages
Started by startrak
Fri, 30 Mar 2007 11:44
message threading
Author: startrak
Date: Fri, 30 Mar 2007 11:44
Date: Fri, 30 Mar 2007 11:44
10 lines
1538 bytes
1538 bytes
Hello all 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? Thanks in advance
Re: message threading
Author: 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
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