🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24923

Re: Total news volume for 1997

#24923
From: Piers Cawley
Date: Tue, 06 Jan 1998 00:00
53 lines
2632 bytes
4 Jan 1998 03:26:51 GMT bem@news.cmc.net (brian moore) news.software.nntp
> In article <68muc9$aun$1@shell.monmouth.com>,
> 	kwl@shell.monmouth.com (Ken Leland) writes:
> > yeah, I'd like to stay content neutral unless, I'm absolutely forced
> > into content sensitive filtering (as I was for inbound posting by our mutually 
> > local spammer from hell). We get a fair amount of new customer 
> > inquiries/signups who come pre-sensitized to the "Censored" newsgroups issue 
> > and ask hard questions. I like MD5, and would favor things to increase
> > its reach like space stripping, and lowercasing, prior to taking the
> > signature, if thats not already done. (and any other tricks that might
> > make the match fuzzy within normal spam-canceller bounds).
> 
> Already hacked in my copy, but need to figure out a good way to integrate
> that into cleanfeed without mucking with the 'Official' version of the
> MD5 module.
> 
> Relatively simple to add, but it'll mean mucking with the module, which
> may cause problems with other things if you use MD5 elsewhere, since it
> ceases to be a 'real' MD5 and become lossy.

Just subclass MD5::SpamStuff and change cleanfeed to load that rather
than plain old MD5. Or do:

my $md5new = undef;
my $md5old = undef;
my $md5    = undef;
BEGIN {
  eval {require MD5::SpamStuff; $md5new = new MD5::SpamStuff} or
  eval {require MD5;            $md5old = new MD5};
  *md5 = $md5new ? $md5new : $md5old;
}

Doing it this way means that you can extend the MD5 interface in
MD5::SpamStuff and write code that does:

if ($md5new) {
 ...
}

if ($md5) {
 ...
}


-- 
Piers Cawley -- Systems Genie for Aladdin
If a `religion' is defined to be a system of ideas that contains
unprovable statements, then Godel taught us that mathematics is not
only a religion, it is the only religion that can prove itself to be
one. -- John Barrow

Technical Details
Message-ID: <54hg7hv7n3.fsf@gunnar.aladdin.net>
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: <000034AD3C93.NO_UCE@mauve.demon.co.uk> <68mfoi$phj$1@news1.exit109.com> <68mj3v$igl$1@shell.monmouth.com> <68mjn1$9m$1@news1.exit109.com> <68muc9$aun$1@shell.monmouth.com> <68mvhr$ado$2@news.cmc.net>

Show Full Headers
Complete Article Headers
Message-ID: <54hg7hv7n3.fsf@gunnar.aladdin.net>
Subject: Re: Total news volume for 1997
Date: Tue, 06 Jan 1998 00:00:00 +0000
From: Piers Cawley <pdcawley@bofh.org.uk>
References: <000034AD3C93.NO_UCE@mauve.demon.co.uk>  <68mfoi$phj$1@news1.exit109.com> <68mj3v$igl$1@shell.monmouth.com>  <68mjn1$9m$1@news1.exit109.com> <68muc9$aun$1@shell.monmouth.com> <68mvhr$ado$2@news.cmc.net>
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: 313340858
Organization: Aladdin Internet
Newsgroups: news.software.nntp