πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90304

Re: working with cnfs

#90304
From: Nigel Reed
Date: Mon, 17 Apr 2023 20:50
49 lines
2450 bytes
On Mon, 17 Apr 2023 20:15:43 +0200
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Nigel,
> 
> > 1. How can I search the entire spool for a given phrase.
> > 
> > 2. How can I search a given hierarchy recursively for a given
> > phrase.
> > 
> > I'm sure I'm not the first person who wants to do this so hopeful
> > someone has a solution.  
> 
> I'm unfortunately not aware of such a tool for other storage methods 
> than tradindexed.  Even timehash won't respond to the second point as 
> articles are not classified by hierarchy.
> 
> If someone has ever written a script to do that, I would happily add
> it to INN.
> 
> I would otherwise just suggest to retrieve articles one by one from
> the history file, and parse them.
> To do that, take the last field of each line in the history field,
> and give its value to "sm -q".
> 
> Example for the first article in the history file in pathdb:
> 
> % head -n1 history | cut -f3 | sm -q
> 
> You'll get the article on standard output.  You could then grep in it 
> whatever you want.
> You now need to iterate over each article.
> 
> Of course a more complex script should be written if your search has 
> several parameters (in a hierarchy, from someone, etc.).

At this point I have over 7 million articles. Do you have any idea how
long that is going to take? :)

Maybe I should have just got a new disk and formatted it with 3 times
the inodes!
 



-- 
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23
Technical Details
Message-ID: <20230417155045.21198a0b@wibble.sysadmininc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20230417103454.440dbdc0@wibble.sysadmininc.com> <u1k2cf$1ran5$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <20230417155045.21198a0b@wibble.sysadmininc.com>
Subject: Re: working with cnfs
Date: Mon, 17 Apr 2023 15:50:45 -0500
From: Nigel Reed <sysop@endofthelinebbs.com>
References: <20230417103454.440dbdc0@wibble.sysadmininc.com> <u1k2cf$1ran5$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: End Of The Line BBS
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: www.sysadmininc.com; posting-host="47.189.156.66"; logging-data="398259"; mail-complaints-to="usenet@www.sysadmininc.com"
X-Newsreader: Claws Mail 4.1.1git47 (GTK 3.24.33; x86_64-pc-linux-gnu)