Deutsch   English   Français   Italiano  
<8msewohz7j.fsf@raybanana.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raybanana.eternal-september.org!.POSTED!not-for-mail
From: Ray Banana <rayban@raybanana.net>
Newsgroups: news.software.nntp
Subject: Re: Interacting with cnfs
Date: Fri, 05 Jul 2024 13:09:52 +0200
Organization: A noiseless patient spider
Lines: 29
Message-ID: <8msewohz7j.fsf@raybanana.net>
References: <20240705023621.62cd4083@wibble.sysadmininc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Jul 2024 13:09:54 +0200 (CEST)
Injection-Info: raybanana.eternal-september.org; posting-host="6a7d56569ad0fd2705ad534e8c300c23";
	logging-data="3438280"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/w0sW7nxykVPBY3j6TihuLRAy8UQ1IywU="
User-Agent: Plonkenlights
Cancel-Lock: sha1:Lb0ZPx2JipgbDc/ftl/HHv19e0Q=
	sha1:KFcs52RI4WgHB+oxy87JAAbD3d0=
X-Attribution: Ray Banana
Bytes: 2359

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