🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80313

Re: Can Cleanfeed filter on a specific user?

#80313
From: Son of Serpent Esq
Date: Mon, 09 Mar 2009 21:28
31 lines
2164 bytes
John F. Morse wrote:
> Son of Serpent Esq wrote:
>> John F. Morse wrote:
>>   
>>>> I do see an unbalance in the curly brackets in the sub 
>>>> local_filter_first section. Should it be like this? :
>>>>
>>>> sub local_filter_first {
>>>>    if ($hdr{'From'} =~ /$from_name_here/) {
>>>>        return reject('Spam');
>>>>    }  <==Added
>>>> };
>>>>       
>>
>> That sure looks like it should work to me. Try something like:
>>
>>  sub local_filter_first {
>>     if ($hdr{'From'} =~ /John_F\..Morse/i) {
>>         return reject('Spam');
>>     }; #  <==Added
>>  };
>>
>> And then add the underscore between your first and middle initial
>> and see if it rejects a post from John_F. Morse.
>
> The present problem is it is rejecting every post. ;-)

And why is that a problem? ;)

Well, I know just enough about perl to be dangerous. We need Steve
or Russ to look at this stuff.
Technical Details
Message-ID: <gp41m8$1i3$6@tioat.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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news2.arglkargh.de!news.visyn.net!open-news-network.org!goblin3!goblin.stu.neva.ru!tioat.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> <gp3rel$1i3$2@tioat.net> <gp40v2$oir$1@optima7.xanadu-bbs.net>

Show Full Headers
Complete Article Headers
Message-ID: <gp41m8$1i3$6@tioat.net>
Subject: Re: Can Cleanfeed filter on a specific user?
Date: Mon, 09 Mar 2009 21:28:40 +0000
From: Son of Serpent Esq <junior@tioat.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> <gp3rel$1i3$2@tioat.net> <gp40v2$oir$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!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!news2.arglkargh.de!news.visyn.net!open-news-network.org!goblin3!goblin.stu.neva.ru!tioat.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Serpent and Son - Garden Supplies and Lawn Mower Repair
Lines: 31
NNTP-Posting-Host: 0x12768570C1B9C0EB
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: news@tioat.net or http://tioat.net/nntp-contact
NNTP-Posting-Date: Mon, 9 Mar 2009 21:28:40 +0000 (UTC)