🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47576

Re: sorting data from xover

#47576
From: Jeroen Scheerder
Date: Sat, 27 Mar 1999 00:00
45 lines
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

Technical Details
Message-ID: <1dpawqd.x0xkiw11pu78uN@medusa.cwi.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <36FC075D.24BC42FC@alexia.lis.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <1dpawqd.x0xkiw11pu78uN@medusa.cwi.nl>
Subject: Re: sorting data from xover
Date: Sat, 27 Mar 1999 00:00:00 +0000
From: js@cwi.nl (Jeroen Scheerder)
References: <36FC075D.24BC42FC@alexia.lis.uiuc.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 459540246
X-NNTP-Posting-Host: 9dyn25.utr.casema.net [212.64.36.25]
Sender: js@9dyn25.utr.casema.net
Mail-Copies-To: nobody
X-XS4ALL-Date: Sat, 27 Mar 1999 01:29:55 CET
X-XS4ALL-User: js
X-Face: (u%,<Ek_K4]BW;*pmlV&,Ev+p0W0hHt,PZs7\2OV%HhTE5\$\MU79J|bQB_m3G"n ,Mz'Pb6*(Z~Wr\GkY`X<!RfA0%7R
Organization: Al-Munqidh min-al-Dalaal
User-Agent: MacSOUP/2.4
Newsgroups: news.software.readers