πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91838

Re: Interacting with cnfs

#91838
From: Ray Banana
Date: Fri, 05 Jul 2024 11:09
29 lines
2151 bytes
Thus spake Nigel Reed <sysop@endofthelinebbs.com>
 
> I was thinking about a report I did for my older server, which used the
> tradspool storage method, and that was to count how many articles are
> in a group and list how many new articles have been added since last
> run.

Are you familiar with the cnfsstat utility?
It provides part of the information you are looking for:

Class NLS for groups matching "at.*,aus.*,be.*,cz.*ch.*,dk.*,es.*,fr.*,hr.*,it.*,nl.*,no.*,nz.*,pl.*,pt.*,se.*,uk.*,yu.*"
 Buffer LNLS00, size:  9.98 GBytes, position:  4.29 GBytes  1.43 cycles
  Newest: 2024-07-05 13:03:12,    0 days,  0:00:56 ago
  Oldest: 2023-04-02  2:43:08,  460 days, 10:21:00 ago
 Buffer LNLS01, size:  40.0 GBytes, position:  1.25 MBytes  1.00 cycles
  Newest: 2023-05-01 22:49:34,  430 days, 14:14:34 ago
  Oldest: 2023-04-02 22:08:40,  459 days, 14:55:28 ago

> I can't see a way to make this happen using cnfs without pulling the
> storage token using a similar method as 6.4 in the FAQ and then
> manually parsing the newsgroups line from each article.

cnfsstat is written in Perl and is included in the INN sources.
The code may give you an idea of how to retrieve additional information
about the articles stored in CNFS buffers.

-- 
ΠŸΡƒΜΡ‚Ρ–Π½ β€” хуйло́
https://www.eternal-september.org
Technical Details
Message-ID: <8msewohz7j.fsf@raybanana.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail
References: <20240705023621.62cd4083@wibble.sysadmininc.com>

Show Full Headers
Complete Article Headers
Message-ID: <8msewohz7j.fsf@raybanana.net>
Subject: Re: Interacting with cnfs
Date: Fri, 05 Jul 2024 13:09:52 +0200
From: Ray Banana <rayban@raybanana.net>
References: <20240705023621.62cd4083@wibble.sysadmininc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Content-Type: text/plain; charset=utf-8
User-Agent: Plonkenlights
X-Attribution: Ray Banana
Lines: 29
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Jul 2024 13:09:54 +0200 (CEST)
Organization: A noiseless patient spider
Mime-Version: 1.0
Cancel-Lock: sha1:Lb0ZPx2JipgbDc/ftl/HHv19e0Q= sha1:KFcs52RI4WgHB+oxy87JAAbD3d0=