🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.misc
5 messages
5 total messages Started by aclexports Tue, 24 Oct 2000 01:19
Threading articles
#2301
Author: aclexports
Date: Tue, 24 Oct 2000 01:19
9 lines
1025 bytes
Can someone point me out to a source of info on how articles are
threaded. How do newsreaders recognize which articles to thread and in
what order. Is the entire information contained in the References
header only ? I am writing a my own code to retrieve articles from an
NNTP server and display them in HTML format. I would like to thread
the headers I retrieve. Whats the easiest way ?

Thanks.
Re: Threading articles
#2294
Author: J.B. Moreno
Date: Mon, 23 Oct 2000 00:00
19 lines
1666 bytes
<aclexports@usa.net> wrote:

> Can someone point me out to a source of info on how articles are
> threaded. How do newsreaders recognize which articles to thread and in
> what order. Is the entire information contained in the References
> header only ? I am writing a my own code to retrieve articles from an
> NNTP server and display them in HTML format. I would like to thread
> the headers I retrieve. Whats the easiest way ?

Threading is done via the References header, but unless all of the
articles in a thread are present, you may not have sufficient
information in a particular article to properly place it unless you
refer to the References header from other articles.

-- 
JBM
"Moebius strippers only show you their back side." -- Unknown

Re: Threading articles
#2295
Author: Johnny Favorite
Date: Mon, 23 Oct 2000 00:00
37 lines
2643 bytes
aclexports@usa.net wrote:
> Can someone point me out to a source of info on how articles are
> threaded. How do newsreaders recognize which articles to thread and in
> what order. Is the entire information contained in the References
> header only ? I am writing a my own code to retrieve articles from an
> NNTP server and display them in HTML format. I would like to thread
> the headers I retrieve. Whats the easiest way ?

Oooh ooh oooh I know that one!

Yes, the information is all in the References header.  Notice that a
top-level post doesn't have one.  A reply to a top-level post will have
the message ID of the replied-to message as its sole References entry.
A reply to the reply will have the message ID of the root-level message
then the first reply.  And so on.

When displaying an article you may not have all of the messages referred
to in its References header, so the optimal parent for a given message
may not be there.  What I do in that case is work my way backwards
through the references until I find one that *is* available and use
that.

It gets trickier if the header gets really long.  You're not supposed to
create a references header that's longer than 998 chars, contains more
than 20 message IDs, or is "line-folded."  Of course some newsreaders do
anyway but it's not good form.  What I do in my newsreader is always
keep the root-level message ID no matter what so that it's possible to
group together all messages that belong in the same thread.  If
References is too long in a message I'm creating I start peeling them
off at the second ID until I get it down to a max 20 IDs and 998 chars.

Some newsreaders attempt to thread messages that lack References headers
by comparing subject lines and assuming ones that start with Re: are
replies.  That sounded too hairy to me so I treat anything without
References as a top-level post.

Re: Threading articles
#2305
Author: Sylvio Runge
Date: Tue, 24 Oct 2000 04:51
15 lines
1562 bytes
aclexports@usa.net wrote:
> 
> Can someone point me out to a source of info on how articles are
> threaded. How do newsreaders recognize which articles to thread and in
> what order. Is the entire information contained in the References
> header only ? I am writing a my own code to retrieve articles from an
> NNTP server and display them in HTML format. I would like to thread
> the headers I retrieve. Whats the easiest way ?
>
See the RFC's (RFC 977) (References-Header):
http://rfc.fh-koeln.de/doc/rfc/html/rfc.html

 S.
Re: Threading articles
#2306
Author: J.B. Moreno
Date: Tue, 24 Oct 2000 05:29
31 lines
2326 bytes
Johnny Favorite <allen@snakebite.com> wrote:

> aclexports@usa.net wrote:
> > Can someone point me out to a source of info on how articles are
> > threaded. How do newsreaders recognize which articles to thread and in
> > what order. Is the entire information contained in the References
> > header only ? I am writing a my own code to retrieve articles from an
> > NNTP server and display them in HTML format. I would like to thread
> > the headers I retrieve. Whats the easiest way ?
> 
> Oooh ooh oooh I know that one!
> 
> Yes, the information is all in the References header.  

Collectively at least.

-snip-
> When displaying an article you may not have all of the messages referred
> to in its References header, so the optimal parent for a given message
> may not be there.  What I do in that case is work my way backwards
> through the references until I find one that *is* available and use
> that.

The other major problem is AOL -- it only includes the immediate parent,
if the immediate parent is missing then you should try to find out where
it went in the thread using the References header of other articles.

-- 
JBM
"Moebius strippers only show you their back side." -- Unknown
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