🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
17 messages
17 total messages Started by Peter Robinson Mon, 09 Dec 2002 19:06
Getting updates to newsgroups with descriptions
#62254
Author: Peter Robinson
Date: Mon, 09 Dec 2002 19:06
13 lines
1362 bytes
What is the best way to update a list of newsgroups with descriptions in
an offline reader?

I can download the full list of names and descriptions initially using
"LIST NEWSGROUPS", and I can get new group names using "NEWGROUPS
<date>", but the latter doesn't return the group descriptions.

I could then parse the reply and send one "LIST NEWSGROUPS <group-name>"
command for each new group, but that would be tedious (and fairly slow).
Surely there's a better way?

Peter
Re: Getting updates to newsgroups with descriptions
#62255
Author: those who know me have no need o...
Date: Mon, 09 Dec 2002 20:19
19 lines
1627 bytes
in news.software.nntp i read:

>I can get new group names using "NEWGROUPS
><date>", but the latter doesn't return the group descriptions.
>
>I could then parse the reply and send one "LIST NEWSGROUPS <group-name>"
>command for each new group, but that would be tedious (and fairly slow).

pipeline your requests.

do you estimate the speed the client can obtain?  if so you might just grab
the entire list if it will be done quickly enough or the user is willing to
wait.  some servers suck goats, returning a line for every active group
even if it has no corresponding description, so you need to presume that
you might receive about 100 * number_of_active_groups bytes.

-- 
bringing you boring signatures for 17 years
Re: Getting updates to newsgroups with descriptions
#62257
Author: Russ Allbery
Date: Mon, 09 Dec 2002 20:34
18 lines
1723 bytes
Peter Robinson <pmrobinson@mail.com> writes:

> I can download the full list of names and descriptions initially using
> "LIST NEWSGROUPS", and I can get new group names using "NEWGROUPS
> <date>", but the latter doesn't return the group descriptions.

> I could then parse the reply and send one "LIST NEWSGROUPS <group-name>"
> command for each new group, but that would be tedious (and fairly slow).
> Surely there's a better way?

That's pretty much the best way, I'm afraid.

-- 
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: Getting updates to newsgroups with descriptions
#62259
Author: Jeffrey M. Vinocur
Date: Mon, 09 Dec 2002 20:58
24 lines
1893 bytes
In article <1fmxozp.1y7iec14q51c0N%pmrobinson@mail.com>,
Peter Robinson <pmrobinson@gmx.net> wrote:
>What is the best way to update a list of newsgroups with descriptions in
>an offline reader?
>
>I can download the full list of names and descriptions initially using
>"LIST NEWSGROUPS", and I can get new group names using "NEWGROUPS
><date>", but the latter doesn't return the group descriptions.
>
>I could then parse the reply and send one "LIST NEWSGROUPS <group-name>"
>command for each new group, but that would be tedious (and fairly slow).

Well, the syntax is "LIST NEWSGROUPS <wildmat-pattern>", so you
can give a comma-separated list of groups.  You can also try to
break down your needed groups by hierarchy, and list those
instead.

And if you need many group names, simply retrieving the whole
file shouldn't be *too* awful.

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Getting updates to newsgroups with descriptions
#62263
Author: Curt Welch
Date: Mon, 09 Dec 2002 22:50
15 lines
1665 bytes
jeff@litech.org (Jeffrey M. Vinocur) wrote:

> Well, the syntax is "LIST NEWSGROUPS <wildmat-pattern>", so you
> can give a comma-separated list of groups.  You can also try to
> break down your needed groups by hierarchy, and list those
> instead.

Since when did "<wildmat-pattern>" allow a comma-separted list of groups?

My LIST NEWSGROUPS doesn't support that.  Do I need to fix something?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Getting updates to newsgroups with descriptions
#62264
Author: Russ Allbery
Date: Mon, 09 Dec 2002 23:27
18 lines
1732 bytes
Curt Welch <curt@kcwc.com> writes:
> jeff@litech.org (Jeffrey M. Vinocur) wrote:

>> Well, the syntax is "LIST NEWSGROUPS <wildmat-pattern>", so you can
>> give a comma-separated list of groups.  You can also try to break down
>> your needed groups by hierarchy, and list those instead.

> Since when did "<wildmat-pattern>" allow a comma-separted list of
> groups?

It's an INN extension not required by the standard.

-- 
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: Getting updates to newsgroups with descriptions
#62265
Author: Jeffrey M. Vinocur
Date: Tue, 10 Dec 2002 00:24
21 lines
1715 bytes
In article <20021209175006.470$vC@newsreader.com>,
Curt Welch <curt@kcwc.com> wrote:
>jeff@litech.org (Jeffrey M. Vinocur) wrote:
>
>> Well, the syntax is "LIST NEWSGROUPS <wildmat-pattern>", so you
>> can give a comma-separated list of groups.  You can also try to
>> break down your needed groups by hierarchy, and list those
>> instead.
>
>Since when did "<wildmat-pattern>" allow a comma-separted list of groups?
>
>My LIST NEWSGROUPS doesn't support that.  Do I need to fix something?

That's what I get for checking the local server rather than the
spec.  Russ is, of course, correct.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Getting updates to newsgroups with descriptions
#62266
Author: Curt Welch
Date: Tue, 10 Dec 2002 02:29
24 lines
2030 bytes
Russ Allbery <rra@stanford.edu> wrote:
> Curt Welch <curt@kcwc.com> writes:
> > jeff@litech.org (Jeffrey M. Vinocur) wrote:
>
> >> Well, the syntax is "LIST NEWSGROUPS <wildmat-pattern>", so you can
> >> give a comma-separated list of groups.  You can also try to break down
> >> your needed groups by hierarchy, and list those instead.
>
> > Since when did "<wildmat-pattern>" allow a comma-separted list of
> > groups?
>
> It's an INN extension not required by the standard.

Does INN allow the comma separted list for all wildmats?

Is this an old INN thing I just didn't realize it did or something newer?

I hate knowing that INN is doing something significant like this when my
server isn't supporting it. :)

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: Getting updates to newsgroups with descriptions
#62267
Author: Russ Allbery
Date: Tue, 10 Dec 2002 02:31
16 lines
1835 bytes
Curt Welch <curt@kcwc.com> writes:

> Does INN allow the comma separted list for all wildmats?

It's spotty which commands support it in current INN releases, and in
particular LIST doesn't support it in INN 2.3 that I can see.  I lifted
the comma-separated list concept into the core wildmat implementation in
INN 2.4-to-be since it seemed useful and there didn't seem to be any
reason not to.  (XPAT is handled separately.)  So it's very new.

-- 
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: Getting updates to newsgroups with descriptions
#62268
Author: Jeffrey M. Vinocur
Date: Tue, 10 Dec 2002 02:50
29 lines
1866 bytes
In article <yl1y4qtxi9.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Curt Welch <curt@kcwc.com> writes:
>
>> Does INN allow the comma separted list for all wildmats?
>
>It's spotty which commands support it in current INN releases,

Yup.  That's why I assumed that since it worked for me, it was
standard (or at least common practice).


>LIST doesn't support it in INN 2.3 that I can see.

Quick testing confirms that.  (My previous tests were with
pre-2.4.)


>I lifted the comma-separated list concept into the core wildmat
>implementation in INN 2.4-to-be since it seemed useful and there
>didn't seem to be any reason not to.

Agreed.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Getting updates to newsgroups with descriptions
#62269
Author: Peter Robinson
Date: Tue, 10 Dec 2002 10:52
24 lines
1806 bytes
those who know me have no need of my name <not-a-real-address@usa.net>
wrote:

> in news.software.nntp i read:
> 
> >I can get new group names using "NEWGROUPS
> ><date>", but the latter doesn't return the group descriptions.
> >
> >I could then parse the reply and send one "LIST NEWSGROUPS <group-name>"
> >command for each new group, but that would be tedious (and fairly slow).
> 
> pipeline your requests.

It seems that that's what I'll have to do.

> do you estimate the speed the client can obtain? if so you might just grab
> the entire list if it will be done quickly enough or the user is willing to
> wait.

Well, I've done that often enough over a modem to know it's not
something you want to do regularly.

Peter
Re: Getting updates to newsgroups with descriptions
#62270
Author: Peter Robinson
Date: Tue, 10 Dec 2002 10:52
17 lines
1553 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Peter Robinson <pmrobinson@mail.com> writes:
> 
> > and I can get new group names using "NEWGROUPS
> > <date>", but the latter doesn't return the group descriptions.
> 
> > I could then parse the reply and send one "LIST NEWSGROUPS <group-name>"
> > command for each new group, but that would be tedious (and fairly slow).
> > Surely there's a better way?
> 
> That's pretty much the best way, I'm afraid.

Thanks for the confirmation.

Peter
Re: Getting updates to newsgroups with descriptions
#62275
Author: Peter Robinson
Date: Tue, 10 Dec 2002 15:48
14 lines
1494 bytes
Russ Allbery <rra@stanford.edu> wrote:

> Curt Welch <curt@kcwc.com> writes:
>
> > Since when did "<wildmat-pattern>" allow a comma-separted list of
> > groups?
> 
> It's an INN extension not required by the standard.

Not yet anyway.  RFC 2980 doesn't mention it, but the latest (expired)
NNTP draft requires it.

Peter
Re: Getting updates to newsgroups with descriptions
#62276
Author: Russ Allbery
Date: Tue, 10 Dec 2002 15:56
20 lines
1952 bytes
Peter Robinson <pmrobinson@mail.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> It's an INN extension not required by the standard.

> Not yet anyway.  RFC 2980 doesn't mention it, but the latest (expired)
> NNTP draft requires it.

Oh, yeah, that's right, I actually won that argument.  I was thinking that
I'd lost it.  *heh*  (I'm still prepared to lose it, if someone like
Andrew says that adding comma-separated wildmats to LIST is a bad move for
some reason.  It seemed easy enough to implement for INN, but I may be
missing something.)

-- 
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: Getting updates to newsgroups with descriptions
#62278
Author: those who know me have no need o...
Date: Tue, 10 Dec 2002 18:05
16 lines
1557 bytes
in news.software.nntp i read:

>> do you estimate the speed the client can obtain? if so you might just
>> grab the entire list if it will be done quickly enough or the user is
>> willing to wait.
>
>Well, I've done that often enough over a modem to know it's not
>something you want to do regularly.

in that case defer it until the user needs it, e.g., as long as they don't
highlight the group for `too long' don't worry about it, but once they stay
there for a while or if they enter the group then fetch the description.

-- 
bringing you boring signatures for 17 years
Re: Getting updates to newsgroups with descriptions
#62279
Author: Andrew Gierth
Date: Wed, 11 Dec 2002 01:15
17 lines
1752 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 [comma in wildmat]

 >> Not yet anyway.  RFC 2980 doesn't mention it, but the latest
 >> (expired) NNTP draft requires it.

 Russ> Oh, yeah, that's right, I actually won that argument.  I was
 Russ> thinking that I'd lost it.  *heh* (I'm still prepared to lose
 Russ> it, if someone like Andrew says that adding comma-separated
 Russ> wildmats to LIST is a bad move for some reason.

I seem to recall arguing against you on that one at the time :-)

-- 
Andrew.
Re: Getting updates to newsgroups with descriptions
#62280
Author: Russ Allbery
Date: Wed, 11 Dec 2002 01:30
22 lines
2224 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes:
>>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

>  Russ> Oh, yeah, that's right, I actually won that argument.  I was
>  Russ> thinking that I'd lost it.  *heh* (I'm still prepared to lose
>  Russ> it, if someone like Andrew says that adding comma-separated
>  Russ> wildmats to LIST is a bad move for some reason.

> I seem to recall arguing against you on that one at the time :-)

I know you argued against the [] character classes, and I'm happy to
concede that one; I couldn't remember if you still disagreed on the
comma-separated wildmats in the absence of [] classes.  (The presence of
the character classes makes supporting the comma-separated lists a lot
more annoying.)

-- 
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