🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80328

Re: Can Cleanfeed filter on a specific user?

#80328
From: Steve
Date: Tue, 10 Mar 2009 09:58
39 lines
2367 bytes
On Mon, 09 Mar 2009 12:54:07 -0500, John F. Morse wrote in
Message-Id: <gp3l3v$lob$1@optima7.xanadu-bbs.net>:

>> sub local_filter_first {
>>    if ($hdr{'From'} =~ /$from_name_here/) {
>>        return reject('Spam');
>>    }  <==Added
>> };
>>
>
> Steve,
>
> The above is how I edited the file to test if that was the cause of the 
> news.notice error, and it apparently was. I didn't see any error message 
> in news.notice:
>
> However, now EVERY article is being rejected as SPAM, including my own 
> locally-posted test post shown at the end of the following:

It's hard to debug this without knowing what you replaced
$from_name_here with.  As an example, it should read something like
this:
if ($hdr{'From'} =~ /steve\@mixmin\.net/) {

If you want to keep your cleanfeed.local in a more human-friendly
format, you can also do it like this:

if ($hdr{'From'} =~ /
        steve\@mixmin\.net      # Troll
    |   example\@invalid\.org   # Flooder
    |   \@baddomain.com		# Shoe sales
/x) {

The /x tells Perl to ignore whitespace, comments and newlines.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Technical Details
Message-ID: <slrngrcedr.6et.steve@news.mixmin.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.mixmin.net!not-for-mail
References: <gou9pu$a8c$1@optima7.xanadu-bbs.net> <80ocwdgpxd.fsf@banana.shacknet.nu> <gp3fbd$k29$1@optima7.xanadu-bbs.net> <slrngrahju.6et.steve@news.mixmin.net> <gp3jhm$l97$1@optima7.xanadu-bbs.net> <gp3l3v$lob$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrngrcedr.6et.steve@news.mixmin.net>
Subject: Re: Can Cleanfeed filter on a specific user?
Date: Tue, 10 Mar 2009 09:58:19 +0000
From: Steve <steve@mixmin.net>
References: <gou9pu$a8c$1@optima7.xanadu-bbs.net> <80ocwdgpxd.fsf@banana.shacknet.nu> <gp3fbd$k29$1@optima7.xanadu-bbs.net> <slrngrahju.6et.steve@news.mixmin.net> <gp3jhm$l97$1@optima7.xanadu-bbs.net> <gp3l3v$lob$1@optima7.xanadu-bbs.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.mixmin.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Lines: 39
NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Tue, 10 Mar 2009 09:58:19 +0000 (UTC)
User-Agent: slrn/pre1.0.0-2 (Linux)