🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #27905

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

#27905
From: Silas Dunsmore
Date: Thu, 30 Apr 1998 00:00
47 lines
2601 bytes
In article <6i8868$vf@bcarh8ab.bnr.ca>,
Chris Lewis <clewis@ferret.ocunix.on.ca> wrote:
>In article <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca>,
>
>>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...
>
>Mind you, the in-core messageid list would get humungous.
>Use another dbm.

I don't think it'd get that huge.  Each hash entry already uses somewhere
around a hundred bytes.  (32 for the MD5 hash in hex, 8 or 12 or so for
Perl's hash of that hash value, and 60-odd for the hit-counter anonymous
variable.  Yes, Perl variables are really that big.)

Converting the hit-counter to something like

	$md5history{$md5hash} = "<message-id1><message-id2><...>"

would use maybe three hundred bytes for a filled-up hash entry.
Remember that there will be at most four message-ids under the default
settings, because it becomes EMP at the fifth identical message body.

Hit-counting could still be done relatively quickly, by scanning the
string for the "<" character.

The big problem, as Brian said, is telling INND what to do about these
message-ids.  Perhaps the filter could just unlink() them itself?
They'd still be in the overview data, though.

-- 
Later, eh?    Silas

Computer sounds as camera moves in to closeup on lasagna's convolutions.

Narrator(voice over): To duplicate your brain with state-of-the-art technology
               would require a computer one hundred stories high ... and as big
               around as the State of Texas.  And it is the last taboo organ of
               the body.  In an age of sexual freedom, the Mind Police arrest
               anyone suspected of enjoying their brains.

Technical Details
Message-ID: <6i8i1m$1q0$1@warez.psyber.com>
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> <6i5kmh$emd@bcarh8ab.bnr.ca> <37pvi0e6dt.fsf_-_@cascade.cs.ubc.ca> <6i8868$vf@bcarh8ab.bnr.ca>

Show Full Headers
Complete Article Headers
Message-ID: <6i8i1m$1q0$1@warez.psyber.com>
Subject: Re: cancelling from the perl filter (was Spam Cancel Moratorium, where next?)
Date: Thu, 30 Apr 1998 00:00:00 +0000
From: silasd@user.psyber.com (Silas Dunsmore)
References: <ErJo4q.50J@ferret.ocunix.on.ca> <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: 348920666
Distribution: inet
Organization: Psyberware Internet Access
Newsgroups: news.software.nntp