Article View: news.software.nntp
Article #60535Re: Hierarchy of individual message subject
From: Curt Welch
Date: Fri, 20 Sep 2002 16:30
Date: Fri, 20 Sep 2002 16:30
59 lines
3225 bytes
3225 bytes
"Gap" <flash@hi.hinet.hr> wrote: > I'm writing yet another web-based usenet client for a specific > news group (on a web page following that same topic)... and > cannot figure out how do news clients like Outlook group > messages following the same subject into that nice > hierarchical display (with pluses and minuses)... > > All I get is this for example: > ==================== > Subject: teessttttt > From: Robert > Date: Sat, 22 Jun 2002 14:03:16 +0200 > Message-ID: <3D146784.2000303@net.hr> > References: 743 > Bytes: 2 > Lines: Xref: news1.hinet.hr hr.test:19261 > Xref: > > One would think that its to do with references, but they often > do not appear... any hint/help would be well appreciated! It is the References:. References only appear in follow-up articles. i.e., in theory, any article with Re: in the subject should whave a References: header, and any without, (like your example above) will not. The References: lists the References: from the article it is a follow-up to combined with the Message-ID of that article. So, the first post of a new thread could be: Subject: Hello! Message-ID: <a@net> Then comes: Subject: Re: Hello Message-ID: <b@com> References: <a@net> Then a followup up to the second message would read: Subject: Re: Hello Message-ID: <e@org> References: <a@net> <b@com> To produce a thread display, you have to write some fairly complex code to match all this stuff up. It's compex because there's no guarantee that References: headers are valid. Many times they are not. You just have to use the information there and re-build the follow-up tree as best you can. You have to decide if an article with a subject of "Re: Hello" but no References: should be placed in the same thread as the ones above, or let it start a new thread of it's own. Your code has to decide where to put an article which lists References: to messages that don't show up on the newsserver, but which do match other Subjects in the same group, etc. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020920123055.689$qT@newsreader.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<amfgi0$9ipn$1@as201.hinet.hr>Show Full Headers
Complete Article Headers
Message-ID: <20020920123055.689$qT@newsreader.com>
Subject: Re: Hierarchy of individual message subject
Date: Fri, 20 Sep 2002 16:30:55 +0000
From: curt@kcwc.com (Curt Welch)
References: <amfgi0$9ipn$1@as201.hinet.hr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com CFzr2avl4bCeIlBqxS+=PY0hKY4LCiDVItDrzSzWkNHS_1M
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 58