Sujet : Re: Interacting with cnfs
De : rayban (at) *nospam* raybanana.net (Ray Banana)
Groupes : news.software.nntpDate : 05. Jul 2024, 12:09:52
Autres entêtes
Organisation : A noiseless patient spider
Message-ID : <8msewohz7j.fsf@raybanana.net>
References : 1
User-Agent : Plonkenlights
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