Article View: news.software.nntp
Article #79073Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?
From: D. Stussy
Date: Sat, 24 May 2008 23:45
Date: Sat, 24 May 2008 23:45
30 lines
2203 bytes
2203 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:g18d3b$clj$1@news.trigofacile.com...
> >> the newsgroup name as the domain part of the message ID.
> >
> >
> > foreach my $g (@groups) {
> > return reject('spam') if $hdr{'Message-ID'} =~ /$g/;
> > }
>
> I would tend to prefer $hdr{'Message-ID'} =~ /\Q$g\E>$/
> because $g contains dots (.) and maybe pluses (+, ++).
> It should also be the end of the Message-ID (with '>$' I think).
>
> HOWEVER, even that this routine will catch some cancel messages like:
>
> May 22 22:39:36.844 <cancel.ca9c5158.78922423@fr.comp.os.linux.annonces>
> Cancelling <dHyvnvuqpR.kcCTjg0R1huD@observe.edu.sg>
>
> which should NOT have been rejected!
>
> I believe the best thing to do is using NoCeM because bleachbot
(maintained
> by Xavier Roche) already deals with such spam:
> [...]
So there are legitimate messages that follow the pattern? ...OR only
cancels?
Technical Details
Message-ID:
<g1a9ba$pdc$1@snarked.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mailReferences:
<g156ij$98h$1@snarked.org> <slrng3emj3.v4r.mnalis-news@eagle102.home.lan> <g18d3b$clj$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <g1a9ba$pdc$1@snarked.org> Subject: Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part? Date: Sat, 24 May 2008 16:45:43 -0700 From: "D. Stussy" <spam@bde-arc.ampr.org> References: <g156ij$98h$1@snarked.org> <slrng3emj3.v4r.mnalis-news@eagle102.home.lan> <g18d3b$clj$1@news.trigofacile.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!news.linkpendium.com!news.linkpendium.com!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 30 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: pool-71-118-49-180.lsanca.dsl-w.verizon.net X-Trace: snarked.org 1211672746 26028 71.118.49.180 (24 May 2008 23:45:46 GMT) X-Complaints-To: newsmaster@snarked.org NNTP-Posting-Date: Sat, 24 May 2008 23:45:46 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478