🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by startrak Mon, 05 Feb 2007 16:51
message threading
#195244
Author: startrak
Date: Mon, 05 Feb 2007 16:51
14 lines
1669 bytes
Hello all

I'm currently developing my own Newsreader client in c++. So far I've
managed to do all the basics of downloading the newsgroups, headers
and the text of the article headers ans so on. However, I'm now stuck
on completing the message threading aspect of the client.

I know the whole process of how the threading works (message id's and
reference id's), but I need an example of how to implement it?

Any ideas?

Thanks in advance.
Re: message threading
#195246
Author: Ralph Fox
Date: Mon, 05 Feb 2007 19:22
21 lines
2191 bytes
On 5 Feb 2007 08:51:34 -0800, in message <1170694294.429417.145350@s48g2000cws.googlegroups.com>,
startrak wrote:

> Hello all
> 
> I'm currently developing my own Newsreader client in c++. So far I've
> managed to do all the basics of downloading the newsgroups, headers
> and the text of the article headers ans so on. However, I'm now stuck
> on completing the message threading aspect of the client.
> 
> I know the whole process of how the threading works (message id's and
> reference id's), but I need an example of how to implement it?


See http://www.jwz.org/doc/threading.html  which has pseudocode.


-- 
Cheers,
Ralph
Re: message threading
#195252
Author: Peter J Ross
Date: Mon, 05 Feb 2007 23:41
23 lines
1827 bytes
On 5 Feb 2007 08:51:34 -0800, startrak <riks.patel@gmail.com> wrote in
news.software.readers:

> Hello all
>
> I'm currently developing my own Newsreader client in c++. So far I've
> managed to do all the basics of downloading the newsgroups, headers
> and the text of the article headers ans so on. However, I'm now stuck
> on completing the message threading aspect of the client.
>
> I know the whole process of how the threading works (message id's and
> reference id's), but I need an example of how to implement it?
>
> Any ideas?
>
> Thanks in advance.

Have you read the source code for slrn, tin and gnus? It wouldn't
surprise me if at least two of the three used similar code for
threading.

-- 
PJR :-)
Re: message threading
#195713
Author: Zenobiusz Zimny
Date: Sat, 17 Feb 2007 21:28
37 lines
2490 bytes
"startrak" <riks.patel@gmail.com> wrote in
news:1170694294.429417.145350@s48g2000cws.googlegroups.com:

> Hello all
> 
> I'm currently developing my own Newsreader client in c++.

Good luck :)

> So far I've managed to do all the basics of downloading the
> newsgroups, headers and the text of the article headers ans so on.

Is your code RFC3977 compliant (just curious)?

> However, I'm now stuck on completing the message threading aspect
> of the client.

Yeah, that is the hardest part.
 
> I know the whole process of how the threading works (message id's and
> reference id's), but I need an example of how to implement it?
> Any ideas?

In theory, it should be quite easy - you just get References header and
remove all its content apart from last Message-ID, which is the parent
of your article. You mentioned that you are writing it in C++, so I
asume that you are using OOP as well. Therefore you can store two
fields: one would be the M-ID of parent article, second would be dynamic
table of all direct responses... There's got to be a method which help
you add any followups. While building headers tree, you would iterate
through such a table and place their headers in place...
Well, at least in theory, this approach should work. But keep in mind,
that Message-ID's might be broken (or incomplete). I don't know about
memory consumption, but AFAICS my "algorithm" may cause some problems...

HTH,
Zenon.
Re: message threading
#195727
Author: Zenobiusz Zimny
Date: Sun, 18 Feb 2007 08:20
39 lines
2548 bytes
"startrak" <riks.patel@gmail.com> wrote in
news:1170694294.429417.145350@s48g2000cws.googlegroups.com:

> Hello all
> 
> I'm currently developing my own Newsreader client in c++.

Good luck :)

> So far I've managed to do all the basics of downloading the
> newsgroups, headers and the text of the article headers ans so on.

Is your code RFC3977 compliant (just curious)?

> However, I'm now stuck on completing the message threading aspect
> of the client.

Yeah, that is the hardest part.
 
> I know the whole process of how the threading works (message id's and
> reference id's), but I need an example of how to implement it?
> Any ideas?

In theory, it should be quite easy - you just get References header and
remove all its content apart from last Message-ID, which is the parent
of your article. You mentioned that you are writing it in C++, so I
asume that you are using OOP as well. Therefore you can store two
fields: one would be the M-ID of parent article, second would be dynamic
array of all direct responses... There's got to be a method which help
you add any followups. While building headers tree, you would iterate
through such a table and place their headers in place...
Well, at least in theory, this approach should work. But keep in mind,
that Message-ID's might be broken (or incomplete). I don't know about
memory consumption, but AFAICS my "algorithm" may cause some problems...

HTH,
Zenon.

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