Thread View: news.software.nntp
4 messages
4 total messages
Started by Mark
Fri, 19 Oct 2001 13:57
Article numbering?
Author: Mark
Date: Fri, 19 Oct 2001 13:57
Date: Fri, 19 Oct 2001 13:57
16 lines
2047 bytes
2047 bytes
How can I tell a NNTP client that it needs to clean out all articles? My NNTP software keeps numbering up messages on my spool (as prescribed,) but how do I let the client know all articles have expired? I heard that I could renumber messages, starting with a number lower than what the client may have. But I do not believe that is "kosher" really. As far as I know, NNTP software should always use higher numbers for new articles, regardless what happens. So, how then do I let the client know it needs to flush everything it has? Is there a special NNTP command I can send the client to have it reset its state? Much obliged, - Mark
Re: Article numbering?
Author: J.B. Moreno
Date: Fri, 19 Oct 2001 15:39
Date: Fri, 19 Oct 2001 15:39
17 lines
1753 bytes
1753 bytes
In article <yjWz7.541976$Lw3.32900448@news2.aus1.giganews.com>, Mark <admin@asarian-host.net> wrote: > How can I tell a NNTP client that it needs to clean out all articles? My > NNTP software keeps numbering up messages on my spool (as prescribed,) but > how do I let the client know all articles have expired? I heard that I could > renumber messages, starting with a number lower than what the client may > have. I'm not sure what your question is. Are you writing a NNTP server? If so then you just need to provide accurate info in response to GROUP and other commands. It's then the clients job to update their internal count of what has been read and can be fetched for display to the user. -- J.B. Moreno
Re: Article numbering?
Author: Curt Welch
Date: Fri, 19 Oct 2001 16:13
Date: Fri, 19 Oct 2001 16:13
34 lines
2765 bytes
2765 bytes
"Mark" <admin@asarian-host.net> wrote: > How can I tell a NNTP client that it needs to clean out all articles? My > NNTP software keeps numbering up messages on my spool (as prescribed,) > but how do I let the client know all articles have expired? I heard that > I could renumber messages, starting with a number lower than what the > client may have. But I do not believe that is "kosher" really. As far as > I know, NNTP software should always use higher numbers for new articles, > regardless what happens. So, how then do I let the client know it needs > to flush everything it has? Is there a special NNTP command I can send > the client to have it reset its state? The response to the group command tells the client everything it needs to know. It includes the current low article number and the high article number. So if you have 10 articles in the spool numbered from 101 to 110, that is what the group command returns. But if they all expire, then the group command will return a response that says the high article is 110, but the low is 111. The fact that the low value is one higher than the "high" value tells the client that there are no current articles in the group. When a new article shows up for that group, it should be assigned the number 111, and the group command will return 111 for both the high and low article numbers. NNTP servers have to keep track of the article numbers even when there are no articles in the group. If you restart the group as article 1, it is likely to cause problems for some clients. Is that what you were asking? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Article numbering?
Author: Mark
Date: Sat, 20 Oct 2001 08:05
Date: Sat, 20 Oct 2001 08:05
51 lines
3440 bytes
3440 bytes
"Curt Welch" <curt@kcwc.com> wrote in message
news:20011019121340.357$7p@newsreader.com...
> "Mark" <admin@asarian-host.net> wrote:
>
> > How can I tell a NNTP client that it needs to clean out all articles?
> > My NNTP software keeps numbering up messages on my spool (as
> > prescribed,) but how do I let the client know all articles have
> > expired? I heard that I could renumber messages, starting with a number
> > lower than what the client may have. But I do not believe that is
> > "kosher" really. As far as I know, NNTP software should always use
> > higher numbers for new articles, regardless what happens. So, how then
> > do I let the client know it needs to flush everything it has? Is there
> > a special NNTP command I can send the client to have it reset its
> > state?
>
> The response to the group command tells the client everything it needs to
> know. It includes the current low article number and the high article
> number. So if you have 10 articles in the spool numbered from 101 to 110,
> that is what the group command returns. But if they all expire, then the
> group command will return a response that says the high article is 110,
> but the low is 111. The fact that the low value is one higher than the
> "high" value tells the client that there are no current articles in the
> group.
>
> When a new article shows up for that group, it should be assigned the
> number 111, and the group command will return 111 for both the high and
> low article numbers. NNTP servers have to keep track of the article
> numbers even when there are no articles in the group.
>
> If you restart the group as article 1, it is likely to cause problems for
> some clients.
>
> Is that what you were asking?
>
> --
> Curt Welch
Yes, that is exactly what I needed. Thanks. :)
- Mark
System Administrator Asarian-host.org
---
"If you were supposed to understand it,
we wouldn't call it code." - FedEx
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