Thread View: news.software.nntp
8 messages
8 total messages
Started by news.usenetserver.com
Mon, 09 Dec 2002 20:56
Group list, please someone explain...
Author: news.usenetserver.com
Date: Mon, 09 Dec 2002 20:56
Date: Mon, 09 Dec 2002 20:56
27 lines
1792 bytes
1792 bytes
Hello, I'm building usenet to web gateway using AspNNTP ActiveX component to do all NNTP related tasks. I don't completely understand the output format of group list, here is the segment of the output... alt.music.toasters 110134 110129 y alt.music.todd-rundgren 126063 125944 y alt.music.tom-petty 115530 115437 y alt.music.tom-waits 130155 130010 y alt.music.tonic 110911 110910 y alt.music.tool 421934 414643 y alt.music.total-touch 110334 110320 y alt.music.toten-hosen 112332 112275 y alt.music.toy-dolls 110203 110190 y alt.music.trading.dat 110578 110571 y alt.music.tragically-hip 146354 145997 y 1st column is a newsgroup name, but what does column 2,3, and 4 mean? I have been looking through RFC #822 and cannot find any details. Thank you for your time...
Re: Group list, please someone explain...
Author: Russ Allbery
Date: Mon, 09 Dec 2002 21:15
Date: Mon, 09 Dec 2002 21:15
53 lines
3458 bytes
3458 bytes
news usenetserver com <noSpam@here.com> writes:
> Hello, I'm building usenet to web gateway using AspNNTP ActiveX
> component to do all NNTP related tasks. I don't completely understand
> the output format of group list, here is the segment of the output...
> alt.music.toasters 110134 110129 y
> alt.music.todd-rundgren 126063 125944 y
> alt.music.tom-petty 115530 115437 y
> alt.music.tom-waits 130155 130010 y
> alt.music.tonic 110911 110910 y
> alt.music.tool 421934 414643 y
> alt.music.total-touch 110334 110320 y
> alt.music.toten-hosen 112332 112275 y
> alt.music.toy-dolls 110203 110190 y
> alt.music.trading.dat 110578 110571 y
> alt.music.tragically-hip 146354 145997 y
> 1st column is a newsgroup name, but what does column 2,3, and 4 mean? I
> have been looking through RFC #822 and cannot find any details.
You wanted to be looking in RFC 977 for NNTP. The new NNTP draft is much
clearer here:
The response to the LIST keyword with no parameters returns a list of
valid newsgroups and associated information. Each newsgroup is sent
as a line of text in the following format:
group first last status
where <group> is the name of the newsgroup, <last> is the number of
the last known article currently in that newsgroup, <first> is the
number of the first article currently in the newsgroup, and <status>
indicates the current status of the group on this server. Typically,
the <status> will consist of the US-ASCII character 'y' where posting
is permitted, 'n' where posting is not permitted and 'm' where
postings will be forwarded to the newsgroup moderator by the news
server. Other status strings may exist. The definition of these other
values and the circumstances under which they are returned is covered
in other specifications. Each field in the line is separated from its
neighboring fields by one or more US-ASCII spaces.
The <first> and <last> fields will always be numeric. They may have
leading zeros. The <first> field corresponds to the "reported low
water mark" and the <last> field corresponds to the "reported high
water mark" described in the GROUP command (see Section 9.1.1.1).
--
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: Group list, please someone explain...
Author: Bert Hyman
Date: Mon, 09 Dec 2002 21:28
Date: Mon, 09 Dec 2002 21:28
37 lines
2214 bytes
2214 bytes
noSpam@here.com (news.usenetserver.com) wrote in news:is7J9.3519$DJ4.366@fe03:
> 1st column is a newsgroup name, but what does column 2,3, and 4 mean? I have
> been looking through RFC #822 and cannot find any details.
The NNTP protocol is documented in RFC977.
The output of the "LIST" or "LIST ACTIVE" command is documented in RFC977
section 3.6.1.
RFC977 3.6.1. LIST
LIST
Returns a list of valid newsgroups and associated information. Each
newsgroup is sent as a line of text in the following format:
group last first p
where <group> is the name of the newsgroup, <last> is the number of
the last known article currently in that newsgroup, <first> is the
number of the first article currently in the newsgroup, and <p> is
either 'y' or 'n' indicating whether posting to this newsgroup is
allowed ('y') or prohibited ('n').
The <first> and <last> fields will always be numeric. They may have
leading zeros. If the <last> field evaluates to less than the
<first> field, there are no articles currently on file in the
newsgroup.
http://www.faqs.org/rfcs/rfc977.txt
Also see http://www.ietf.org/rfc/rfc2980.txt "Common NNTP Extensions"
--
Bert Hyman | St. Paul, MN | bert@visi.com
Re: Group list, please someone explain...
Author: news.usenetserver.com
Date: Mon, 09 Dec 2002 21:58
Date: Mon, 09 Dec 2002 21:58
47 lines
2571 bytes
2571 bytes
OK, Thanx guys, that was very helpfull...
"Bert Hyman" <bert@visi.com> wrote in message
news:Xns92DF9D5B86AF2VeebleFetzer@news.visi.com...
> noSpam@here.com (news.usenetserver.com) wrote in
news:is7J9.3519$DJ4.366@fe03:
>
> > 1st column is a newsgroup name, but what does column 2,3, and 4 mean? I
have
> > been looking through RFC #822 and cannot find any details.
>
> The NNTP protocol is documented in RFC977.
>
> The output of the "LIST" or "LIST ACTIVE" command is documented in RFC977
> section 3.6.1.
>
> RFC977 3.6.1. LIST
>
> LIST
>
> Returns a list of valid newsgroups and associated information. Each
> newsgroup is sent as a line of text in the following format:
>
> group last first p
>
> where <group> is the name of the newsgroup, <last> is the number of
> the last known article currently in that newsgroup, <first> is the
> number of the first article currently in the newsgroup, and <p> is
> either 'y' or 'n' indicating whether posting to this newsgroup is
> allowed ('y') or prohibited ('n').
>
> The <first> and <last> fields will always be numeric. They may have
> leading zeros. If the <last> field evaluates to less than the
> <first> field, there are no articles currently on file in the
> newsgroup.
>
> http://www.faqs.org/rfcs/rfc977.txt
>
> Also see http://www.ietf.org/rfc/rfc2980.txt "Common NNTP Extensions"
>
> --
> Bert Hyman | St. Paul, MN | bert@visi.com
Re: Group list, please someone explain...
Author: Slavic Kozyuk
Date: Tue, 10 Dec 2002 13:22
Date: Tue, 10 Dec 2002 13:22
69 lines
4083 bytes
4083 bytes
Would it be valid to estimate message count by
<LAST> - <FIRST> = [MSG. Count]
If [MSG. Count] <= 0 Then
[MSG. Count] = 0
End if
Is this how NNTP client such as Outlook Express calculates number of posts
in newsgroup before d/l headers?
"Russ Allbery" <rra@stanford.edu> wrote in message
news:yl1y4qyjuk.fsf@windlord.stanford.edu...
> news usenetserver com <noSpam@here.com> writes:
>
> > Hello, I'm building usenet to web gateway using AspNNTP ActiveX
> > component to do all NNTP related tasks. I don't completely understand
> > the output format of group list, here is the segment of the output...
>
> > alt.music.toasters 110134 110129 y
> > alt.music.todd-rundgren 126063 125944 y
> > alt.music.tom-petty 115530 115437 y
> > alt.music.tom-waits 130155 130010 y
> > alt.music.tonic 110911 110910 y
> > alt.music.tool 421934 414643 y
> > alt.music.total-touch 110334 110320 y
> > alt.music.toten-hosen 112332 112275 y
> > alt.music.toy-dolls 110203 110190 y
> > alt.music.trading.dat 110578 110571 y
> > alt.music.tragically-hip 146354 145997 y
>
> > 1st column is a newsgroup name, but what does column 2,3, and 4 mean? I
> > have been looking through RFC #822 and cannot find any details.
>
> You wanted to be looking in RFC 977 for NNTP. The new NNTP draft is much
> clearer here:
>
> The response to the LIST keyword with no parameters returns a list of
> valid newsgroups and associated information. Each newsgroup is sent
> as a line of text in the following format:
>
> group first last status
>
> where <group> is the name of the newsgroup, <last> is the number of
> the last known article currently in that newsgroup, <first> is the
> number of the first article currently in the newsgroup, and <status>
> indicates the current status of the group on this server. Typically,
> the <status> will consist of the US-ASCII character 'y' where posting
> is permitted, 'n' where posting is not permitted and 'm' where
> postings will be forwarded to the newsgroup moderator by the news
> server. Other status strings may exist. The definition of these other
> values and the circumstances under which they are returned is covered
> in other specifications. Each field in the line is separated from its
> neighboring fields by one or more US-ASCII spaces.
>
> The <first> and <last> fields will always be numeric. They may have
> leading zeros. The <first> field corresponds to the "reported low
> water mark" and the <last> field corresponds to the "reported high
> water mark" described in the GROUP command (see Section 9.1.1.1).
>
> --
> 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: Group list, please someone explain...
Author: Bert Hyman
Date: Tue, 10 Dec 2002 14:27
Date: Tue, 10 Dec 2002 14:27
37 lines
2483 bytes
2483 bytes
skozyuk[NO@SPAM]mazzellalifting.com (Slavic Kozyuk) wrote in news:pNlJ9.313732$f9.188723@FE06: > Would it be valid to estimate message count by ><LAST> - <FIRST> = [MSG. Count] > > If [MSG. Count] <= 0 Then > [MSG. Count] = 0 > End if The calculation would be "(last-first)+1", but don't get the information from a LIST command. It's a BAD idea to retrieve the full newsgroup list unless the user explicitly asks for it. The list can be tens of thousands of lines long, and on a dialup connection retrieving it can be murder. > Is this how NNTP client such as Outlook Express calculates number > of posts in newsgroup before d/l headers? They probably use the GROUP command which returns 211 <number> <first> <last> <groupname> where <number> is the server's estimate of how many articles are present in the group. The <number> field may be more accurate than just subtracting first from last if the server keeps track of the number of article actually present in the newsgroup. Of course, you probably won't be retrieving ALL the headers from a newsgroup most of the time anyway, only the headers for articles that your user hasn't already seen. With cross-posts and all, figuring that out can be tricky, and knowing the total number of articles in the group won't be of much interest. -- Bert Hyman | St. Paul, MN | bert@visi.com
Re: Group list, please someone explain...
Author: Slavic Kozyuk
Date: Tue, 10 Dec 2002 14:58
Date: Tue, 10 Dec 2002 14:58
11 lines
1511 bytes
1511 bytes
OK, thanks Bert. I'll probably have more questions as the project progresses... "Bert Hyman" <bert@visi.com> wrote in message news:Xns92E0560E9EA0CVeebleFetzer@news.visi.com... > skozyuk[NO@SPAM]mazzellalifting.com (Slavic Kozyuk) wrote in > news:pNlJ9.313732$f9.188723@FE06:
Re: Group list, please someone explain...
Author: Russ Allbery
Date: Tue, 10 Dec 2002 15:19
Date: Tue, 10 Dec 2002 15:19
36 lines
2682 bytes
2682 bytes
Bert Hyman <bert@visi.com> writes:
> The calculation would be "(last-first)+1", but don't get the information
> from a LIST command. It's a BAD idea to retrieve the full newsgroup list
> unless the user explicitly asks for it. The list can be tens of
> thousands of lines long, and on a dialup connection retrieving it can be
> murder.
While in general I think Bert is right, this can vary depending on the
circumstance. For example, I read news over a local connection to
Stanford's news server (it's in the same building), we only carry about
8,000 groups, and I'm subscribed to a couple hundred. Gnus wants to
display a summary of the number of unread messages in every group I read
for me, and I want to have that summary. In that situation, it's much
faster for Gnus to just retrieve the entire active file than to send
several hundred GROUP commands.
For a small number of groups, it's probably better to use:
LIST ACTIVE <group>
than to send GROUP commands, since the former is probably more optimized
for this purpose than the latter. The GROUP command may do other things,
such as open the overview database for that group, on the assumption that
after a GROUP command you'll probably start retrieving articles in the
group.
But I'm not sure if that really matters enough to cause a noticable
performance impact.
--
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.
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