Article View: news.software.nntp
Article #33395Re: De-spamming a diablo newsfeed?
From: Fluffy
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
32 lines
2442 bytes
2442 bytes
On 30 Nov 1998, Russ Allbery wrote:
> Fluffy <meowing@banet.net> writes:
{cutting memcpy stuff out of INN perl filtering}
> > Yeah, this could be done, but not without risk. If the filter script or
> > some underlying bit of perl magic decides to modify that article buffer
> > during the filtering phase, innd could become very, very upset.
>
> Might be worth it for the speed, though. Just tell filter authors Don't
> Do That.
Hmmm. Perl's memory manageent is casual enough where that Just Might
Work. Map an SV onto the body's buffer, and stand back.
> Of course, if you do whitespace munging in your MD5 filter, or drop the
> last line of the article, you end up having to make a copy anyway.
Yeah, but I think it could still eliminate a step.
Another variation on the themes already discussed: what if the headers
keep getting passed as now, and body byte and line counts get added to the
hash (I'm figuring that the lines are quicker to count while we're still
in C)? If you decide you still want to look at the body after scanning
the headers and body stats, you can grab it with a callback, or even use
the potentially dodgy SV trick above.
Hmmm. Good thing I wasn't planning on being able to sleep tonight anyway.
Technical Details
Message-ID:
<Pine.F39q8t.Ir-100000@meowhost.meow.invalid>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-mailReferences:
<brad-1011981913570001@brad.techos.skynet.be> <72f0rp$mpa@newsops.execpc.com> <72fes2$4ks$1@flea.best.net> <brad-1311980053340001@dialup480.brussels.skynet.be> <72g0d8$pd$1@flea.best.net> <Pine.LNX.4.00.9811130845390.5743-100000@coredump.int.tele.dk> <ylpvarakci.fsf@windlord.stanford.edu> <Pine.F3897J.M8M-100000@meowhost.meow.invalid> <yl3e70r17d.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <Pine.F39q8t.Ir-100000@meowhost.meow.invalid> Subject: Re: De-spamming a diablo newsfeed? Date: Mon, 30 Nov 1998 00:00:00 +0000 From: Fluffy <meowing@banet.net> References: <brad-1011981913570001@brad.techos.skynet.be> <72f0rp$mpa@newsops.execpc.com> <72fes2$4ks$1@flea.best.net> <brad-1311980053340001@dialup480.brussels.skynet.be> <72g0d8$pd$1@flea.best.net> <Pine.LNX.4.00.9811130845390.5743-100000@coredump.int.tele.dk> <ylpvarakci.fsf@windlord.stanford.edu> <Pine.F3897J.M8M-100000@meowhost.meow.invalid> <yl3e70r17d.fsf@windlord.stanford.edu> 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: 417348478 X-Sender: fluffy@meowhost.meow.invalid Content-Type: TEXT/PLAIN; charset=US-ASCII X-Complaints-To: abuse@demon.net X-Mail2News-Path: news.demon.net!out2.ibm.net!meowhost.meow.invalid X-Trace: mail2news.demon.co.uk 912486033 mail2news:11993 mail2news mail2news.demon.co.uk Organization: meow Mime-Version: 1.0 Newsgroups: news.software.nntp