Thread View: news.software.readers
5 messages
5 total messages
Started by vince patone
Fri, 26 Mar 1999 00:00
sorting data from xover
Author: vince patone
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
43 lines
2563 bytes
2563 bytes
Hello. I have two questions about threading the data that one gets from an xover command. I've read through several FAQ's and previous messages to this ng and I do have some insight into possible answers, but just wanted to see if there was more. 1.) If someone posts a new message (not a follow-up) to a newsgroup and that message contains an identical subject header to an already existing thread, should a client process that post and put it in with the previous thread, or display it separately in a new thread of its own? My logic after skimming through some RFC's is that if a message doesn't have any reference values, than it should be posted as a new message (not as a follow-up to any existing message). However, I've seen several news clients that put the new message into the already existing thread. Which leads to my second question. 2.) Before I re-invent the wheel, is there any existing code which will take the results from an xover command and put the messages into a properly theaded order? I'm assuming that even beyond the usual options of sorting messgaes in a linear fashion by author, date, etc.. that there is some discrepency in what is considered a proper "threading" order (hence my first question), but let's assume I'm correct above and that messages should only be threaded by using message-ID's in the reference header. Is there existing code that does this work already? Currently, I'm using the Perl News::NNTPClient Module and so I'd prefer Perl code, but what's more important is just tips on what progamming logic should be applied. Right now I'm staring at this task thinking..."You know, you really aren't trained as a programmer.You are going to waste huge amounts of CPU time with some convoluted hack. Seek help first." Any and all comments appreciated. Apologies if this is old-hat to many of you here. tia, -vince
Re: sorting data from xover
Author: Dawn Owens-Nicholson
Date: Fri, 26 Mar 1999 00:00
Date: Fri, 26 Mar 1999 00:00
39 lines
2530 bytes
2530 bytes
vince patone wrote: > 1.) If someone posts a new message (not a follow-up) to a newsgroup and > that message contains an identical subject header to an already existing > thread, should a client process that post and put it in with the > previous thread, or display it separately in a new thread of its own? I think you are correct in that such an article is a new thread (especially if the Subject: is *identical*, not starting with "Re: "). Even if the Subject: header began with "Re: " it wouldn't be a follow-up. Tricky situations can arise when people manually edit References: headers, including the message-ID of articles not mentioned in the thread elsewhere. It's also been suggested any message-IDs present in the body be mentioned in the References: header as well, to make them proper parent articles. > However, I've seen several news clients that put the new message into the > already existing thread. They are either subject sorting (a very popular option which can mangle threads as you just described) or they're trying to be clever (and failing). This might be the result of some 80/20 solution--80% of the time, it might be appropriate to lump such an article in with the existing thread, but this precludes someone being able to have any Subject: header they want and it helps hide a bug in some posting-agent somewhere. > I'm assuming that even beyond the usual options of sorting messgaes in a > linear fashion by author, date, etc.. that there is some discrepency in what > is considered a proper "threading" order (hence my first question) [...] Don't forget sorting threads is up to the user--in a threaded sort, the order of articles within a thread follows References:, but the order of the threads is not predetermined. Unfortunately I have no code to contribute for this task, particularly Perl code. Happy newsreading!
Re: sorting data from xover
Author: Phree Phorm Phluffy
Date: Sat, 27 Mar 1999 00:00
Date: Sat, 27 Mar 1999 00:00
24 lines
2068 bytes
2068 bytes
>>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
Curt> But, the general starting point is that the threads are built
Curt> from the References: header and not from the subjects. But it's
Curt> possible for an article which is really part of a thread to not
Curt> have the References: header it should have. So it's nice if the
Curt> newsreader makes it easy for the user to see that article when
Curt> they are reading the others in a thread. Combining that posting
Curt> with the other thread might be a valid soulution to that issue.
Curt> But because the article might have nothing to do with the
Curt> thread, it would be nice to indicate somehow that it's listed in
Curt> the thread only because it has the same subject....
One nice approach to the problem is to combine the threads by
reference, then display the list of threads sorted by subject. This
keeps possibly-related articles nearby without the need to make
guesses.
--
Stupid INN tricks: <URL:http://members.tripod.com/~gerglery/>
Stupid MPEG tricks: <URL:http://members.xoom.com/meowing/>
Stupid songs: <URL:http://mp3.com/yell_at_birds/>
Re: sorting data from xover
Author: Curt Welch
Date: Sat, 27 Mar 1999 00:00
Date: Sat, 27 Mar 1999 00:00
25 lines
2091 bytes
2091 bytes
vince patone <patone@alexia.lis.uiuc.edu> wrote: > Hello. I have two questions about threading Threading gets very complex for many reasons you didn't even touch on. And the answer as to how you deal all this will depend a lot on how the UI you create works - and on how hard you want to work to try to patch together threads broken by bogus newsreaders and transports. The more complex the UI - the more complex it is to know how to correctly thread articles. There is no "right" way (well there is not a single "right" way). But, the general starting point is that the threads are built from the References: header and not from the subjects. But it's possible for an article which is really part of a thread to not have the References: header it should have. So it's nice if the newsreader makes it easy for the user to see that article when they are reading the others in a thread. Combining that posting with the other thread might be a valid soulution to that issue. But because the article might have nothing to do with the thread, it would be nice to indicate somehow that it's listed in the thread only because it has the same subject.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: sorting data from xover
Author: Jeroen Scheerder
Date: Sat, 27 Mar 1999 00:00
Date: Sat, 27 Mar 1999 00:00
45 lines
2667 bytes
2667 bytes
vince patone <patone@alexia.lis.uiuc.edu>:
> 1.) If someone posts a new message (not a follow-up) to a newsgroup and
> that message contains an identical subject header to an already existing
> thread, should a client process that post and put it in with the
> previous thread, or display it separately in a new thread of its own? My
> logic after skimming through some RFC's is that if a message doesn't
> have any reference values, than it should be posted as a new message
> (not as a follow-up to any existing message). However, I've seen several
> news clients that put the new message into the already existing thread.
Depends on how you choose to cater with bugs caused by malfunctioning
other clients or gateways, I think; there exists readers/gateways that
fail to include (or suppress) the References header.
A sensible thing to do, IMHO, would be:
if ( there are References in _Msg_ )
insert _Msg_ in thread by References
else
if ( the Subject of _Msg_ is prefixed
with with the `back reference' "Re: ")
/** a broken message, probably, ... */
insert _Msg_ into thread with identical Subject
by `guestimating' appropriately using Date
else
create a thread, starting with _Msg_
> Which leads to my second question.
>
> 2.) Before I re-invent the wheel, is there any existing code which will
> take the results from an xover command and put the messages into a
> properly theaded order?
AFAIK, there is no clean library for this. However, source code from
existing threading newsreaders -- trn, for example -- will make a good
starting point.
-- J$
--
dash dash space
this is my .sig it's not so .big
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