Article View: news.software.readers
Article #66092Re: What are the top 5 newsreaders for Windows?
From: Jonadab the Unsightly One
Date: Fri, 29 Sep 2000 00:00
Date: Fri, 29 Sep 2000 00:00
53 lines
3650 bytes
3650 bytes
Bojan Pasic <bojan.pasic@EAT.THIScampus.fri.uni-lj.si> wrote: > I've been thinking about this too. But I can't find any component (I'm > using Delphi), that would display threads in a listbox, and I don't know > how to write it myself :( Unfortunately newsreader without threading > couldn't be considered as 'good'. Can't help you with Delphi, since I don't have it. Perhaps comp.lang.pascal.delphi.* could be of some assistance. As far as the threading, though, you probably can sort messages into threads via the following procedure... For each message, examine the references headers and find the message-id of the parent message, if any. Using this information, for each message take the message-id and successively prepend each ancestor id starting with the parent and working back up the chain until you either find the original post with no references header or get a message-id for which you don't have the message (presumably because it expired), in which case extract from the references of the oldest message you do have the *first* message-id, which normally should be the original post, and prepend that. If you sort on this field, you should split the messages nicely into threads. If you also indent the messages by some constant number (about 3) of spaces for each message-id in its ancestor list, up to a certain maximum, you should get a display a lot like Free Agent's, sans starting a new thread when the subject line changes, which I leave as an exercise. If you also want to sort the threads (say, by the oldest unread message in the thread), simply construct a sort key for each *thread* and then prepend it to the sort key of every message in that thread. Note that if you cache these sort keys for all the messages, you can later create a sort key for any new message by postpending its own message-id to the sort key of its parent. You might want to cache them without the prepended thread sort key, though, if that will be subject to change. (If, like Free Agent you just always use the date of the first message, you don't have to worry about that.) -- "Popularity and quality are orthogonal." -- jonadab
Technical Details
Message-ID:
<39d46201.3038753@news.bright.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8lia63$4cmd3$1@ID-41100.news.cis.dfn.de> <hoc3osslkpmib31qj6jsivc7uqc011jrrf@4ax.com> <den3osgi4bjprecrt4r6vo9l4b32adc4ao@4ax.com> <8kq3osoe2nramg2r8na2magvhrqe7hhbdd@4ax.com> <39c4fdbd.30847885@news.bright.net> <cuubss0btjshh1k4sea2l6fqfsbqmkugha@4ax.com> <39d1d786.8593398@news.bright.net> <4s64ts02ffu2dh8ene0t65i0bg7f9hqk3l@4ax.com> <39d2a565.15686223@news.bright.net> <c5t6ts49igp2c0to5l9ivgb4inv05omck1@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <39d46201.3038753@news.bright.net> Subject: Re: What are the top 5 newsreaders for Windows? Date: Fri, 29 Sep 2000 00:00:00 +0000 From: jonadab@bright.net (Jonadab the Unsightly One) References: <8lia63$4cmd3$1@ID-41100.news.cis.dfn.de> <hoc3osslkpmib31qj6jsivc7uqc011jrrf@4ax.com> <den3osgi4bjprecrt4r6vo9l4b32adc4ao@4ax.com> <8kq3osoe2nramg2r8na2magvhrqe7hhbdd@4ax.com> <39c4fdbd.30847885@news.bright.net> <cuubss0btjshh1k4sea2l6fqfsbqmkugha@4ax.com> <39d1d786.8593398@news.bright.net> <4s64ts02ffu2dh8ene0t65i0bg7f9hqk3l@4ax.com> <39d2a565.15686223@news.bright.net> <c5t6ts49igp2c0to5l9ivgb4inv05omck1@4ax.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 675557538 X-Complaints-To: abuse@bright.net X-Trace: cletus.bright.net 970241163 209.143.57.106 (Fri, 29 Sep 2000 11:26:03 EDT) Organization: There is no organisation. NNTP-Posting-Date: Fri, 29 Sep 2000 11:26:03 EDT X-Send-Spam-To: uce@ftc.gov Newsgroups: alt.usenet.offline-reader,alt.usenet.offline-reader.forte-agent,news.software.readers,microsoft.public.windows.inetexplorer.ie55.outlookexpress