Thread View: news.software.nntp
12 messages
12 total messages
Started by Charles M.
Thu, 20 Jun 2002 22:03
threading problems on custom nntp server
Author: Charles M.
Date: Thu, 20 Jun 2002 22:03
Date: Thu, 20 Jun 2002 22:03
50 lines
2673 bytes
2673 bytes
I've written a newsgroup server, but when newsreaders get headers via XOVER, the resulting threads are incorrect. I only started noticing this when threads get to be more than a few levels deep. The behavior is that some posts end up appearing as part of a thread even when, upon inspecting the header, the post has no references listed. I tested with OE and Xnews. I tried supporting Xref in the overview to see if it would help, but it didn't. Is Xref required for threading to work? Here is a sample session, where all lines shown are coming from my server... Note that i've indicated tab characters with #9; Also, some of the lines will undoubtedly wrap when I post this message. 200 Hello 200 server ready - posting allowed 381 More authentication information required 281 Authentication accepted 215 list of newsgroups follows test 1 57 y .. 200 Hello 200 server ready - posting allowed 381 More authentication information required 281 Authentication accepted 211 57 1 57 test 224 1#9firstpost#91#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:42:04 -0500#9<1@test.com>#9#96#93#9Xref: test.com test:1 2#9firstpost#91#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:42:29 -0500#9<2@test.com>#9#96#93#9Xref: test.com test:2 3#9test#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:42:52 -0500#9<3@test.com>#9#96#93#9Xref: test.com test:3 etc...further down the list are some entries with references: 11#9firstpost#93#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:47:58 -0500#9<11@test.com>#9<1@test.com> <10@test.com>#90#90#9Xref: test.com test:11 57#9firstpost#95#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:48:51 -0500#9<57@test.com>#9<1@test.com> <9@test.com> <13@test.com> <46@test.com>#90#90#9Xref: test.com test:57 .. Thanks very much for suggestions. Charles
Re: threading problems on custom nntp server
Author: Charles M.
Date: Fri, 21 Jun 2002 13:41
Date: Fri, 21 Jun 2002 13:41
47 lines
2432 bytes
2432 bytes
"Charles M." <charles@semo.net> wrote in message news:uh4k8qn82pdc58@corp.supernews.com... > Note that i've indicated tab characters with #9; Also, some of the lines > will undoubtedly wrap when I post this message. Whoops, there are some places where i've indicated tab characters that i shouldn't have. Some of the subjects read "firstpost 1", "firstpost 5" etc. This is what the output reads... 200 Hello 200 server ready - posting allowed 381 More authentication information required 281 Authentication accepted 215 list of newsgroups follows test 1 57 y .. 200 Hello 200 server ready - posting allowed 381 More authentication information required 281 Authentication accepted 211 57 1 57 test 224 1#9firstpost 1#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:42:04 -0500#9<1@test.com>#9#96#93#9Xref: test.com test:1 2#9firstpost 1#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:42:29 -0500#9<2@test.com>#9#96#93#9Xref: test.com test:2 3#9test#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:42:52 -0500#9<3@test.com>#9#96#93#9Xref: test.com test:3 etc...further down the list are some entries with references: 11#9firstpost 3#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:47:58 -0500#9<11@test.com>#9<1@test.com> <10@test.com>#90#90#9Xref: test.com test:11 57#9firstpost 5#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 11:48:51 -0500#9<57@test.com>#9<1@test.com> <9@test.com> <13@test.com> <46@test.com>#90#90#9Xref: test.com test:57 .. Thanks very much for suggestions. Charles
Re: threading problems on custom nntp server
Author: Charles M.
Date: Fri, 21 Jun 2002 17:51
Date: Fri, 21 Jun 2002 17:51
11 lines
1168 bytes
1168 bytes
"Charles M." <charles@semo.net> wrote in message news:uh6b8fpslu2u8f@corp.supernews.com... Maybe the problem is with the format of my message-id's? Is it ok to make the message-id just be a number followed by @test.com? Any suggestions are appreciated. Charles
Re: threading problems on custom nntp server
Author: J.B. Moreno
Date: Fri, 21 Jun 2002 21:13
Date: Fri, 21 Jun 2002 21:13
33 lines
2568 bytes
2568 bytes
In article <uh6ptba5gcb407@corp.supernews.com>, Charles M. <charles@semo.net> wrote: > "Charles M." <charles@semo.net> wrote in message > news:uh6b8fpslu2u8f@corp.supernews.com... > > Maybe the problem is with the format of my message-id's? Is it ok to make > the message-id just be a number followed by @test.com? For testing purposes, that's fine, although I would suggest that you use "a@test.com", "b@test.com" ... "aa@test.com" ... "az@test.com", etc as it'll help keep something clear, in particular... From reading your previous message, it seems that you are a bit confused as to how threading is done. You mention Xref, which is not used for threading but instead for cross-post management. Threading is done via the References header. When an article is posted/stored to a group, the article should be given a group-specific article number, which should increase by one for every article added to that group. An article crossposted to serveral groups can thus be identified as such by examining the Xref header (which would look like Xref: news.test.com group1:8 group2:76). And those numbers would be used (by the client) to mark an article read in one group, so that the user doesn't have to read it in both. References is used for threading, and is built by the client -- the server's job is to correctly return it via the XOVER command (check out RFC 2980 and "OVER" basically it's that with a different name). -- J.B. Moreno
Re: threading problems on custom nntp server
Author: Greg Andrews
Date: Fri, 21 Jun 2002 23:07
Date: Fri, 21 Jun 2002 23:07
31 lines
2273 bytes
2273 bytes
"Charles M." <charles@semo.net> writes:
>
>I've written a newsgroup server, but when newsreaders get headers via XOVER,
>the resulting threads are incorrect. I only started noticing this when
>threads get to be more than a few levels deep. The behavior is that some
>posts end up appearing as part of a thread even when, upon inspecting the
>header, the post has no references listed. I tested with OE and Xnews.
>
The newsreader performs the threading. Overview information (retrieved
via the XOVER command) is used by the newsreader to associate articles
with each other so they become threads.
Why would some newsreaders include an article into a thread when that
article did not have anything in its References: header?
I dunno. Ask the author (or documentation) of that newsreader.
Some newsreaders may include an article in the thread when the
article has the same Subject: line as other articles in the thread.
Again, the decision to include an article in a thread (or exclude it)
is in the hands of the newsreader. The server just collects the data
useful for threading and offers is via the XOVER command.
-Greg
--
::::::::::::: Greg Andrews ::::: gerg@panix.com :::::::::::::
I have a map of the United States that's actual size.
-- Steven Wright
Re: threading problems on custom nntp server
Author: Curt Welch
Date: Sat, 22 Jun 2002 03:31
Date: Sat, 22 Jun 2002 03:31
47 lines
3225 bytes
3225 bytes
"Charles M." <charles@semo.net> wrote: > I've written a newsgroup server, but when newsreaders get headers via > XOVER, the resulting threads are incorrect. I only started noticing this > when threads get to be more than a few levels deep. The behavior is that > some posts end up appearing as part of a thread even when, upon > inspecting the header, the post has no references listed. I tested with > OE and Xnews. You aren't being very specific about what you are seeing so it's hard to guess. And I don't see antyhing obviously wrong with the XOVER data. But here's a few commenets to think about... The root (first) article in a thread never has a References header yet it's always included in the thread -- so articles without References: are normal. It's placed there because some other article listed it's Message-ID in it's Reference's line. Some articles you find on Usenet are just broken and don't have References: so newsreaders commonly have code to thread based on other information, such as Subject, or if the ID of the article shows up in some other References: line. Also, newsreaders download XOVER data and then store it locally. If in your testing you wipe out the servers data and try restarting but don't also clear the newsreaders memory of the old data, you will see exactly the type of stuff you are talking about. The newsreader could be using the old xover data to thread the new articles. > I tried supporting Xref in the overview to see if it would help, but it > didn't. Is Xref required for threading to work? No. It shouldn't be. > Here is a sample session, where all lines shown are coming from my > server... > 57#9firstpost#95#9"Charles M." <charles@semo.net>#9Thu, 20 Jun 2002 > 11:48:51 -0500#9<57@test.com>#9<1@test.com> <9@test.com> <13@test.com> > <46@test.com>#90#90#9Xref: test.com test:57 0 bytes and 0 lines? I would suggest you put real numbers there. Though I don't see how that could be related to your threading problem. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: threading problems on custom nntp server
Author: Curt Welch
Date: Sat, 22 Jun 2002 03:33
Date: Sat, 22 Jun 2002 03:33
19 lines
1917 bytes
1917 bytes
"Charles M." <charles@semo.net> wrote: > "Charles M." <charles@semo.net> wrote in message > news:uh6b8fpslu2u8f@corp.supernews.com... > > Maybe the problem is with the format of my message-id's? Is it ok to > make the message-id just be a number followed by @test.com? Yes, that's fine. But if in your testing you wipe out the news servers database and restart with 1@test.com, you newsreaders are going to get confused if you don't also reset their information about the server at the same time. This type of problem is one of the big reasons news servers don't create message-IDs like that anymore (they all used to work that way long ago). -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: threading problems on custom nntp server
Author: Charles M.
Date: Sat, 22 Jun 2002 14:36
Date: Sat, 22 Jun 2002 14:36
12 lines
1320 bytes
1320 bytes
"Charles M." <charles@semo.net> wrote in message news:<uh4k8qn82pdc58@corp.supernews.com>... > I've written a newsgroup server, but when newsreaders get headers via XOVER, > the resulting threads are incorrect. I only started noticing this when > threads get to be more than a few levels deep. The behavior is that some To see the behavior log on to 65.168.98.66 User name: test Password: test Thanks everyone for help
Re: threading problems on custom nntp server
Author: Charles M.
Date: Sat, 22 Jun 2002 15:05
Date: Sat, 22 Jun 2002 15:05
14 lines
1313 bytes
1313 bytes
"Charles M." <charles@semo.net> wrote in message news:<uh4k8qn82pdc58@corp.supernews.com>... > I've written a newsgroup server, but when newsreaders get headers via XOVER, > the resulting threads are incorrect. I only started noticing this when > threads get to be more than a few levels deep. The behavior is that some To see the behavior log on to 65.168.98.66 User: test Pass: test Thanks for help Charles
Re: threading problems on custom nntp server
Author: Curt Welch
Date: Sat, 22 Jun 2002 19:56
Date: Sat, 22 Jun 2002 19:56
57 lines
3681 bytes
3681 bytes
charles@semo.net (Charles M.) wrote: > "Charles M." <charles@semo.net> wrote in message > news:<uh4k8qn82pdc58@corp.supernews.com>... > > I've written a newsgroup server, but when newsreaders get headers via > > XOVER, the resulting threads are incorrect. I only started noticing > > this when threads get to be more than a few levels deep. The behavior > > is that some > > To see the behavior log on to 65.168.98.66 > > User name: test > Password: test > > Thanks everyone for help Your server needs a lot of work. You have lots of commands which do nothing (like next, head, stat, body, help). They should either work correctly or return a 500 error. Authinfo commands only work when authinfo is in upper case but for some odd reason rejects authinication when "authinfo" is in lower case. Invalid commands cause the server to disconnect. They should return a 500 error. "xover 1-" doesn't work. It was hard at first to find a command which worked correctly. Anyhow, your thread bug happens because your xover code is broken. Articles which have no References: header show the References: header for the previous article when xover is producing output for multiple article. So, article 31 has no references header. If you do "XOVER 31", it produces a valid xover ouput like this: 31 Hi All "April" <april@avimark.net> Fri, 21 Jun 2002 16:09:53 -0500 <31@test.com> 39 3 Xref: test.com test:31 But if you do xover 30-31, you get: 30 Re: Billy the Goat! (Please Add 1 Sentence to Story) "Kermit \"the Killer Frog\"" <chuck@avimark.net> Fri, 21 Jun 2002 13:56:31 -0500 <30@test.com> <3@test.com> <17@test.com> <18@test.com> <19@test.com> <25@test.com> <26@test.com> <28@test.com> 678 20 Xref: test.com test:30 31 Hi All "April" <april@avimark.net> Fri, 21 Jun 2002 16:09:53 -0500 <31@test.com> <3@test.com> <17@test.com> <18@test.com> <19@test.com> <25@test.com> <26@test.com> <28@test.com> 39 Xref: test.com test:31 i.e., the xover data for article 31 is showing the references header from article 30. So, not surprising, newsreaders get confused. You know, this stuff really isn't that hard to figure out. If you simply looked at what your newsserver was sending the newsreader for the article which you knew was not showing up correctly you should have seen the bug. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: threading problems on custom nntp server
Author: Charles M.
Date: Sun, 23 Jun 2002 15:11
Date: Sun, 23 Jun 2002 15:11
10 lines
1396 bytes
1396 bytes
curt@kcwc.com (Curt Welch) wrote in message news:<20020622155636.737$Rk@newsreader.com>... > You know, this stuff really isn't that hard to figure out. If you simply > looked at what your newsserver was sending the newsreader for the article > which you knew was not showing up correctly you should have seen the bug. Thanks for your suggestions Curt. I'll take my server down now and crawl back to my hole. :) Charles
Re: threading problems on custom nntp server
Author: Curt Welch
Date: Sun, 23 Jun 2002 17:21
Date: Sun, 23 Jun 2002 17:21
20 lines
2028 bytes
2028 bytes
charles@semo.net (Charles M.) wrote: > curt@kcwc.com (Curt Welch) wrote in message > news:<20020622155636.737$Rk@newsreader.com>... > > You know, this stuff really isn't that hard to figure out. If you > > simply looked at what your newsserver was sending the newsreader for > > the article which you knew was not showing up correctly you should have > > seen the bug. > > Thanks for your suggestions Curt. I'll take my server down now and > crawl back to my hole. :) Well, don't do that. I really shouldn't have been so harsh. Writting Usenet code can be fun. Don't give up on it just because some jerk who has been doing this stuff for 10 years spotted a bug faster than you did. :) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
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