🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27917

Re: cancelling from the perl filter (was Spam Cancel Moratorium, where next?)

#27917
From: greg
Date: Thu, 30 Apr 1998 00:00
43 lines
2371 bytes
clewis@ferret.ocunix.on.ca (Chris Lewis) writes:

> In article <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca>,
> Brian Edmonds  <bedmonds@cs.ubc.ca> wrote:
> >I can see in my head trivially how to implement this in my filter,
> >except for the part about nuking.  At present all I can imagine is some
> >hack involving logging msgids to a file and having a cron job deal with
> >it externally.
> 
> That was my first cut... ;-)

Just steal the fastcancel program from c-nocem.  That's especially
convenient if you're already filling in the gaps with it anyway.

> >What I'd really love is some way to do callbacks from the filter to innd
> >so I can just call whatever C function does the cancelling and feed it
> >the msgids to zap.
> 
> If you remembered the messageids in-core, t'would be nice if the
> filter could access the history file...

Has anyone been crazy enough to try using the DBZ_File module on
history from within the perl filter?

> Mind you, the in-core messageid list would get humungous.
> Use another dbm.
> 
> Not another dbm! ;-)

Could be kind of slow, maybe not so bad if the ID/hash pairs are
logged or piped to a separate cleaner-upper process thingy to handle.
That also conveniently avoids having to figure out the callback
problem =)

> How about storing the MD5 hash in the history file as a pseudo group
> reference?

Still ugly if you want to go back and get something that hit a
different threshold than MD5.  Big problem, since those are the ones
that trigger on higher counts =(

Technical Details
Message-ID: <87wwc7k69j.meow@fluffy.meow.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <ErJo4q.50J@ferret.ocunix.on.ca> <8rr11.14$n5.2561968@gazette.loc1.tandem.com> <6i5kmh$emd@bcarh8ab.bnr.ca> <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca> <6i8868$vf@bcarh8ab.bnr.ca>

Show Full Headers
Complete Article Headers
Message-ID: <87wwc7k69j.meow@fluffy.meow.org>
Subject: Re: cancelling from the perl filter (was Spam Cancel Moratorium, where next?)
Date: Thu, 30 Apr 1998 00:00:00 +0000
From: greg <greg@meow.org>
References: <ErJo4q.50J@ferret.ocunix.on.ca> <8rr11.14$n5.2561968@gazette.loc1.tandem.com> <6i5kmh$emd@bcarh8ab.bnr.ca> <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca> <6i8868$vf@bcarh8ab.bnr.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 349014566
X-Server-Date: Thu, 30 Apr 1998 09:28:41 GMT
Distribution: inet
Organization: This article was probably generated by a buggy news reader.
Newsgroups: news.software.nntp