🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79072

Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?

#79072
From: Julien ÉLIE
Date: Sat, 24 May 2008 06:37
47 lines
3548 bytes
Hi Matija,

>> 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:

[...]
May 22 22:31:48 news innd: SERVER cancelled <87e37059.85bf5de5@geometry.pre-college>
May 22 22:31:48 news innd: SERVER cancelled <4df4b4b1.725b63fc@hannet.ml.netbsd.current>
May 22 22:31:48 news innd: SERVER cancelled <0567dcac.5f25a0a6@gov.us.topic.ecommerce.announce>
May 22 22:31:48 news innd: SERVER cancelled <f2e235bd.ecd2b6fa@sat.eff>
May 22 22:31:48 news innd: SERVER cancelled <bfe5fc9c.b941d06f@comp.ai.vision>
May 22 22:31:48 news innd: SERVER cancelled <8e458890.4664136b@gov.us.topic.nat-resources.minerals>
May 22 22:31:48 news innd: SERVER cancelled <5534d589.54874eef@muc.lists.suns-at-home>
May 22 22:31:48 news innd: SERVER cancelled <c4bace51.a7a2398b@soc.politics.marxism>
May 22 22:32:18 news innd: SERVER cancelled <5c77f1c4.c993289b@sura.announce>
May 22 22:32:18 news innd: SERVER cancelled <16321d8d.84118016@alt.penthouse.sex.testeless>
May 22 22:32:18 news innd: SERVER cancelled <4478a467.71213d80@info.bytecounters>
May 22 22:32:18 news innd: SERVER cancelled <d8c40c58.7ec6b328@soc.genealogy.jewish>
May 22 22:32:19 news innd: SERVER cancelled <a85cc6f2.a5d5a3e5@comp.ai>
May 22 22:32:19 news innd: SERVER cancelled <ed59bf6b.d3dda984@gov.topic.transport.navigation>
[...]

-- 
Julien ÉLIE

« Les amis de la vérité sont ceux qui la cherchent,
  et non ceux qui se vantent de l'avoir trouvée. » (Condorcet) 
Technical Details
Message-ID: <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!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail
References: <g156ij$98h$1@snarked.org> <slrng3emj3.v4r.mnalis-news@eagle102.home.lan>

Show Full Headers
Complete Article Headers
Message-ID: <g18d3b$clj$1@news.trigofacile.com>
Subject: Re: Wanted: Perl filter routine (for cleanfeed) - newsgroup name as message-ID domain part?
Date: Sat, 24 May 2008 08:37:27 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <g156ij$98h$1@snarked.org> <slrng3emj3.v4r.mnalis-news@eagle102.home.lan>
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!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 47
NNTP-Posting-Host: aaubervilliers-151-1-49-243.w83-114.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="Windows-1252";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1211611051 12979 83.114.131.243 (24 May 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 24 May 2008 06:37:31 +0000 (UTC)
In-Reply-To: <slrng3emj3.v4r.mnalis-news@eagle102.home.lan>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18000