🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Johannes Eggers Wed, 17 Apr 2002 04:54
Is ARTICLE <someid> valid without prior GROUP ?
#58208
Author: Johannes Eggers
Date: Wed, 17 Apr 2002 04:54
13 lines
1129 bytes
I couldn't figure this out from RFC 977:

When a client issues the ARTICLE <somemessageid> command (or HEAD/STAT/BODY
with msg-id) without prior issue of a GROUP command, should the news-server
locate the article by searching all groups, or should it respond with an
error of some kind ?

Thanks,

 Johannes


Re: Is ARTICLE <someid> valid without prior GROUP ?
#58204
Author: Russ Allbery
Date: Wed, 17 Apr 2002 05:05
19 lines
1667 bytes
Johannes Eggers <jeggers@tetrix.com> writes:

> I couldn't figure this out from RFC 977:

> When a client issues the ARTICLE <somemessageid> command (or
> HEAD/STAT/BODY with msg-id) without prior issue of a GROUP command,
> should the news-server locate the article by searching all groups,

Yes.

(Or more frequently, by looking up the message ID in a database of some
kind.  But regardless, it should retrieve and display the article.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Is ARTICLE <someid> valid without prior GROUP ?
#58214
Author: Andrew - Supernews
Date: Wed, 17 Apr 2002 13:29
24 lines
2162 bytes
In article <kjsqbukrkq8jsu5o8kctp60d6bl40s8eco@4ax.com>, =-lordsnow-= wrote:
> Sometimes, when I change my mind, and choose to download something after
> I moved onto a next group it tells me "artcile not in group" or
> something similar. After going back to the previous group I can download
> it no problem. I always thought this odd behaviour since it really
> shouldn't matter because the article number identifies the message
> no matter what but figured it must be the strict way of doing things:
> first select the group THEN retrieve articles from THAT group only. 

There are two ways of retrieving articles: by article number, which is
only possible within the relevent group, and by message-id, which is
possible anywhere. Article numbers are both group-specific and server-
specific; they are meaningful only in the context of a specific group on
a specific server. Message-ids, on the other hand, are (theoretically)
globally unique.

If your client is issuing retrieval commands based on the article numbers
in one group after having issued a GROUP command to change to a different
group, then it is broken, plain and simple.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Is ARTICLE <someid> valid without prior GROUP ?
#58216
Author: LongHairedFreak
Date: Wed, 17 Apr 2002 14:05
30 lines
2485 bytes
=-lordsnow-= <lordsnow@home.nl> wrote:

>first select the group THEN retrieve articles from THAT group only. My
>NSP (@Home Benelux) uses Typhoon, btw.

"Andrew - Supernews" <andrew+nonews@supernews.com> replied:

>> There are two ways of retrieving articles: by article number, which is
>> only possible within the relevent group, and by message-id, which is
>> possible anywhere. Article numbers are both group-specific and server-
>> specific; they are meaningful only in the context of a specific group on
>> a specific server. Message-ids, on the other hand, are (theoretically)
>> globally unique.

In Typhoon and Twister, the message-ids are stored in a history database.
The database is ,by default, set to store 8 million records. This means that
when the server has received article 8,000,001, the reference to article 1
by
message-id is deleted.  This will not affect article retrieval by group and
number.

The size of the history database can be set by use of the -queue flag to
Twisterd or Typhoond.  The argument to -queue is an integer, which indicates
how many millions of records you want your history db to store.

LHF



Re: Is ARTICLE <someid> valid without prior GROUP ?
#58221
Author: Andrew - Supernews
Date: Wed, 17 Apr 2002 16:08
27 lines
2330 bytes
In article <Alfv8.70794$2w4.975523@news.webusenet.com>, LongHairedFreak wrote:
> In Typhoon and Twister, the message-ids are stored in a history database.
> The database is ,by default, set to store 8 million records. This means that
> when the server has received article 8,000,001, the reference to article 1
> by
> message-id is deleted.  This will not affect article retrieval by group and
> number.
> 
> The size of the history database can be set by use of the -queue flag to
> Twisterd or Typhoond.  The argument to -queue is an integer, which indicates
> how many millions of records you want your history db to store.

Indeed; we do something vaguely similar, though our system is (I believe)
somewhat more flexible than what Typhoon does. Currently, we have a
history database configured for 100 million articles, and it turns out
that we are _just_ pushing the oldest entries out too soon (our retention
is up to 265 days in some hierarchies, and about the oldest 4 or 5 days
of that is missing from history).

Note that at about 1.3 million arts/day (increased from 1 million arts/day
265 days ago), a straight cyclic history would require about 3 times as
many entries to cover the same range.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: Is ARTICLE <someid> valid without prior GROUP ?
#58227
Author: Johannes Eggers
Date: Wed, 17 Apr 2002 19:15
18 lines
1708 bytes
"LongHairedFreak" <LongHairedFreak@att.net> wrote in message
news:Alfv8.70794$2w4.975523@news.webusenet.com...
> In Typhoon and Twister, the message-ids are stored in a history database.
> The database is ,by default, set to store 8 million records. This means
that
> when the server has received article 8,000,001, the reference to article 1
> by message-id is deleted.  This will not affect article retrieval by group
and
> number.

Doesn't that mean if a newsreader did a STAT without parameters and then
parses the message-id to do an ARTICLE <messageid> it would fail ?
(Not sure why a newsreader would do that...)

Johannes


Re: Is ARTICLE <someid> valid without prior GROUP ?
#58228
Author: LongHairedFreak
Date: Wed, 17 Apr 2002 19:41
14 lines
1779 bytes
> Doesn't that mean if a newsreader did a STAT without parameters and then
> parses the message-id to do an ARTICLE <messageid> it would fail ?
> (Not sure why a newsreader would do that...)

If the ids are beyond the range of the history, yes.  I don't think any
newsreader
does that.  And if they did, it would be a matter of increasing the history
retention.

LHF



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