Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Statistics means never having to say you're certain.


computers / news.software.nntp / Re: Getting a list of groups + number of articles

SubjectAuthor
* Getting a list of groups + number of articlesNigel Reed
`* Re: Getting a list of groups + number of articlesAioe
 `* Re: Getting a list of groups + number of articlesNigel Reed
  +* Re: Getting a list of groups + number of articlesGrant Taylor
  |`- Re: Getting a list of groups + number of articlesTodd M. McComb
  `* Re: Getting a list of groups + number of articlesJulien ÉLIE
   `* Re: Getting a list of groups + number of articlesyamo'
    +* Re: Getting a list of groups + number of articlesJulien ÉLIE
    |`- Re: Getting a list of groups + number of articlesyamo'
    `- Re: Getting a list of groups + number of articlesJulien ÉLIE

1
Getting a list of groups + number of articles

<20220329133107.4719656c@wibble.sysadmininc.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=695&group=news.software.nntp#695

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.endofthelinebbs.com!.POSTED.47.186.38.89!not-for-mail
From: sys...@endofthelinebbs.com (Nigel Reed)
Newsgroups: news.software.nntp
Subject: Getting a list of groups + number of articles
Date: Tue, 29 Mar 2022 13:31:07 -0500
Organization: End Of The Line BBS
Message-ID: <20220329133107.4719656c@wibble.sysadmininc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: www.sysadmininc.com; posting-host="47.186.38.89";
logging-data="1547578"; mail-complaints-to="usenet@www.sysadmininc.com"
X-Newsreader: Claws Mail 4.0.0git423 (GTK+ 3.24.20; x86_64-pc-linux-gnu)
 by: Nigel Reed - Tue, 29 Mar 2022 18:31 UTC

Hi all,

Is there any command that'll list the newsgroups and number of articles
in each group? I'm looking for active groups I want to expose to my
BBS. Some I know are active, others, not so sure. Sort go going
through the spool and counting them using a script, I wonder if a
command already exists?

Thanks,
Nigel

--
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23

Re: Getting a list of groups + number of articles

<t1vqf8$12mp$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=696&group=news.software.nntp#696

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!aioe.org!IQ2i42ciXzDQmLOvLLYi9g.user.46.165.242.75.POSTED!not-for-mail
From: est...@aioe.org (Aioe)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Tue, 29 Mar 2022 22:33:43 +0200
Organization: Aioe.org NNTP Server
Message-ID: <t1vqf8$12mp$1@gioia.aioe.org>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="35545"; posting-host="IQ2i42ciXzDQmLOvLLYi9g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Aioe - Tue, 29 Mar 2022 20:33 UTC

Il 29/03/22 20:31, Nigel Reed ha scritto:
> Hi all,
>
> Is there any command that'll list the newsgroups and number of articles
> in each group?

LIST COUNTS does this:

$ telnet nntp.aioe.org nntp
Trying 46.165.242.75...
Connected to nntp.aioe.org.
Escape character is '^]'.
200 nntp.aioe.org InterNetNews NNRP server INN 2.6.1 ready (posting ok)
LIST COUNTS aioe.news.*
215 Newsgroups in form "group high low count status"
aioe.news.assistenza 8180 657 6601 y
aioe.news.helpdesk 7156 5591 1557 y
aioe.news.nocem 15139 10 15130 y

Re: Getting a list of groups + number of articles

<20220330002150.26509256@wibble.sysadmininc.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=697&group=news.software.nntp#697

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.endofthelinebbs.com!.POSTED.47.186.38.89!not-for-mail
From: sys...@endofthelinebbs.com (Nigel Reed)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Wed, 30 Mar 2022 00:21:50 -0500
Organization: End Of The Line BBS
Message-ID: <20220330002150.26509256@wibble.sysadmininc.com>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: www.sysadmininc.com; posting-host="47.186.38.89";
logging-data="1547578"; mail-complaints-to="usenet@www.sysadmininc.com"
X-Newsreader: Claws Mail 4.0.0git423 (GTK+ 3.24.20; x86_64-pc-linux-gnu)
 by: Nigel Reed - Wed, 30 Mar 2022 05:21 UTC

On Tue, 29 Mar 2022 22:33:43 +0200
Aioe <estasi@aioe.org> wrote:

> Il 29/03/22 20:31, Nigel Reed ha scritto:
> > Hi all,
> >
> > Is there any command that'll list the newsgroups and number of
> > articles in each group?
>
> LIST COUNTS does this:

I was thinking more like something I can run from a linux command line.

--
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23

Re: Getting a list of groups + number of articles

<t20s08$vqs$1@tncsrv09.home.tnetconsulting.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=698&group=news.software.nntp#698

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Wed, 30 Mar 2022 00:06:29 -0600
Organization: TNet Consulting
Message-ID: <t20s08$vqs$1@tncsrv09.home.tnetconsulting.net>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
<20220330002150.26509256@wibble.sysadmininc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 30 Mar 2022 06:06:00 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="32604"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <20220330002150.26509256@wibble.sysadmininc.com>
Content-Language: en-US
 by: Grant Taylor - Wed, 30 Mar 2022 06:06 UTC

On 3/29/22 11:21 PM, Nigel Reed wrote:
> I was thinking more like something I can run from a linux command line.

If you have command line access to a news server that's using
traditional spool, you can probably work some find / ls / etc magic to
get what you want.

--
Grant. . . .
unix || die

Re: Getting a list of groups + number of articles

<t20vs1$uci$1@hope.eyrie.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=699&group=news.software.nntp#699

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.killfile.org!news.eyrie.org!.POSTED!not-for-mail
From: mcc...@medieval.org (Todd M. McComb)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Wed, 30 Mar 2022 07:12:01 -0000 (UTC)
Organization: Medieval Music & Arts Foundation
Message-ID: <t20vs1$uci$1@hope.eyrie.org>
References: <20220329133107.4719656c@wibble.sysadmininc.com> <t1vqf8$12mp$1@gioia.aioe.org> <20220330002150.26509256@wibble.sysadmininc.com> <t20s08$vqs$1@tncsrv09.home.tnetconsulting.net>
Injection-Date: Wed, 30 Mar 2022 07:12:01 -0000 (UTC)
Injection-Info: hope.eyrie.org;
logging-data="31122"; mail-complaints-to="news@eyrie.org"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: todd@pangkur.medieval.org (Todd M. McComb)
 by: Todd M. McComb - Wed, 30 Mar 2022 07:12 UTC

In article <t20s08$vqs$1@tncsrv09.home.tnetconsulting.net>,
Grant Taylor <gtaylor@tnetconsulting.net> wrote:
>If you have command line access to a news server that's using
>traditional spool, you can probably work some find / ls / etc magic to
>get what you want.

This information is in /usr/lib/news/active
Subtract for a count.

Re: Getting a list of groups + number of articles

<t22fo2$15ap6$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=700&group=news.software.nntp#700

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176-143-2-105.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Wed, 30 Mar 2022 22:49:06 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t22fo2$15ap6$1@news.trigofacile.com>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
<20220330002150.26509256@wibble.sysadmininc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 30 Mar 2022 20:49:06 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="1223462"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:qIhJljELAjuZvrzeiawVxNIh/J0= sha256:YxNv78iTERSnzMUKNHKgzQFkv65GHGoLdSOY0wBuLuU=
sha1:Qxog6ClC+373ZDs+SbIXlwKo/3A= sha256:xSHTDwraujG6WeOME584FlOf8KEArJZ+JS5hq0ZDPyY=
In-Reply-To: <20220330002150.26509256@wibble.sysadmininc.com>
 by: Julien ÉLIE - Wed, 30 Mar 2022 20:49 UTC

Hi Nigel,

>>> Is there any command that'll list the newsgroups and number of
>>> articles in each group?
>>
>> LIST COUNTS does this:
>
> I was thinking more like something I can run from a linux command line.

Assuming INN is installed (it provides the getlist tool):

% getlist -h nntp.aioe.org counts 'aioe*' | awk '{ print $1, $4 }'
aioe.it.discussioni 148
aioe.news.assistenza 6601
aioe.news.helpdesk 1557
aioe.system 80
aioe.test 1630
aioe.test.tor 37
aioe.news.nocem 15130
aioe.test.moderated 7
aioe.helpdesk 259

or:

% getlist counts | awk '{ print $1, $4 }'

for your local news server.

--
Julien ÉLIE

« L'éternité, c'est long, surtout vers la fin. » (Woody Allen)

Re: Getting a list of groups + number of articles

<t2majp$f5p$1@rasp.pasdenom.info>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=725&group=news.software.nntp#725

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!.POSTED.2a01:e0a:21:ea80:2bcd:1898:8c71:814c!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Thu, 7 Apr 2022 11:24:08 +0200
Organization: <http://pasdenom.info/news.html>
Message-ID: <t2majp$f5p$1@rasp.pasdenom.info>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
<20220330002150.26509256@wibble.sysadmininc.com>
<t22fo2$15ap6$1@news.trigofacile.com>
Reply-To: yamo@groumpf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Apr 2022 09:24:09 -0000 (UTC)
Injection-Info: rasp.pasdenom.info; posting-account="stephane"; posting-host="2a01:e0a:21:ea80:2bcd:1898:8c71:814c";
logging-data="15545"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.11.1
Cancel-Lock: sha256:5RyTMXyPJRO9ybiVJMMwdusDLKuyfb2asKzcIoegNaI=
In-Reply-To: <t22fo2$15ap6$1@news.trigofacile.com>
X-Face: 3KI0f?#fLTG@kKi{}=#:0_|0/Yj`]d3fD_\O0w{?AFf"Cw9|V~#Nd.Wks
 by: yamo' - Thu, 7 Apr 2022 09:24 UTC

Hi Julien,

Julien ÉLIE a tapoté le 30/03/2022 22:49:
> % getlist counts | awk '{ print $1, $4 }'
>
> for your local news server.
>

On INN 2.6.4 :

"getlist" works but "getlist counts" always give this error :

getlist: unexpected server response: 501 Unknown LIST keyword

There must a configuration for counts... The local (without -h) answer
may said what to do.

Best regards,
--
Stéphane

Re: Getting a list of groups + number of articles

<t2mbuq$1l9jh$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=726&group=news.software.nntp#726

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!aioe.org!news.freedyn.de!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176.143-2-105.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Thu, 7 Apr 2022 11:47:05 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t2mbuq$1l9jh$1@news.trigofacile.com>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
<20220330002150.26509256@wibble.sysadmininc.com>
<t22fo2$15ap6$1@news.trigofacile.com> <t2majp$f5p$1@rasp.pasdenom.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Apr 2022 09:47:06 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="1746545"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:4dhdNUpmIAnKI+rtOyr7wCEpGQo= sha256:O5l6omZ7O7Xzf+H8fpApi6C0L6vcy3iaqlQgBXC+S8A=
sha1:3bbiaJzZoso1SWvZ2BNyBZwyBeo= sha256:roU7YtuCgJObpmb8xGoX4SxuCKHNMJq9dVj8HO31MFo=
In-Reply-To: <t2majp$f5p$1@rasp.pasdenom.info>
 by: Julien ÉLIE - Thu, 7 Apr 2022 09:47 UTC

Bonjour Stéphane,

>> % getlist counts | awk '{ print $1, $4 }'
>>
>> for your local news server.
>
> On INN 2.6.4 :
>
> "getlist" works but "getlist counts" always give this error :
>
> getlist: unexpected server response: 501 Unknown LIST keyword
>
> There must a configuration for counts... The local (without -h) answer
> may said what to do.

Could you please try "getlist -R counts"?
This way, getlist will send a "MODE READER" command before sending its
request.

--
Julien ÉLIE

« Roma tibi subito motibus ibit amor. »

Re: Getting a list of groups + number of articles

<t2mhdc$1lh5l$1@news.trigofacile.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=727&group=news.software.nntp#727

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Thu, 7 Apr 2022 13:20:12 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <t2mhdc$1lh5l$1@news.trigofacile.com>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
<20220330002150.26509256@wibble.sysadmininc.com>
<t22fo2$15ap6$1@news.trigofacile.com> <t2majp$f5p$1@rasp.pasdenom.info>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Apr 2022 11:20:12 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105";
logging-data="1754293"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:Ep5t3qSG+N4xeh8y8l2Sq3UzkBo= sha256:VvGgctAg4QeY+aYlSNwB0KoRM93aCZx7/3uNqmZW1co=
sha1:gm8myOuyLTEL7OG2X3/5iwgCcMg= sha256:SBklxoAaZSAx/TP1tk3fL5ps1LhwwaIQ8B6vV3TVkTo=
In-Reply-To: <t2majp$f5p$1@rasp.pasdenom.info>
 by: Julien ÉLIE - Thu, 7 Apr 2022 11:20 UTC

Bonjour Stéphane,

> "getlist" works but "getlist counts" always give this error :
>
> getlist: unexpected server response: 501 Unknown LIST keyword

I've improved the response innd gives, so that there is a hint about
what to do:

% getlist counts
getlist: unexpected server response: 401 MODE-READER

Of course, if the keyword is unknown or if the server won't allow to
switch to reader mode, the previous answer will still be given:

% getlist unknownarg
getlist: unexpected server response: 501 Unknown LIST keyword

--
Julien ÉLIE

« Le dieu, dont l'oracle est à Delphes, ne parle pas, ne dissimule pas :
il indique. » (Héraclite d'Éphèse, fragment 93, traduction de Jean
Voilquin)

Re: Getting a list of groups + number of articles

<t2mi3v$3kp$1@rasp.pasdenom.info>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=728&group=news.software.nntp#728

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!.POSTED.2a01:e0a:21:ea80:2bcd:1898:8c71:814c!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.nntp
Subject: Re: Getting a list of groups + number of articles
Date: Thu, 7 Apr 2022 13:32:15 +0200
Organization: <http://pasdenom.info/news.html>
Message-ID: <t2mi3v$3kp$1@rasp.pasdenom.info>
References: <20220329133107.4719656c@wibble.sysadmininc.com>
<t1vqf8$12mp$1@gioia.aioe.org>
<20220330002150.26509256@wibble.sysadmininc.com>
<t22fo2$15ap6$1@news.trigofacile.com> <t2majp$f5p$1@rasp.pasdenom.info>
<t2mbuq$1l9jh$1@news.trigofacile.com>
Reply-To: yamo@groumpf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Apr 2022 11:32:15 -0000 (UTC)
Injection-Info: rasp.pasdenom.info; posting-account="stephane"; posting-host="2a01:e0a:21:ea80:2bcd:1898:8c71:814c";
logging-data="3737"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.11.1
Cancel-Lock: sha256:0ucmqVG57VrWJFeU52BQTw4f1M64zho2mGaJvrfkplM=
In-Reply-To: <t2mbuq$1l9jh$1@news.trigofacile.com>
X-Face: 3KI0f?#fLTG@kKi{}=#:0_|0/Yj`]d3fD_\O0w{?AFf"Cw9|V~#Nd.Wks
 by: yamo' - Thu, 7 Apr 2022 11:32 UTC

Hi,
Julien ÉLIE a tapoté le 07/04/2022 11:47:
> getlist -R counts

It works :)

Thanks a lot!
--
Stéphane

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor