Article View: news.software.nntp
Article #80316Re: Can Cleanfeed filter on a specific user?
From: John F. Morse
Date: Mon, 09 Mar 2009 22:51
Date: Mon, 09 Mar 2009 22:51
54 lines
3084 bytes
3084 bytes
Son of Serpent Esq wrote:
> 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.
>
Yes, and I hope they can find a solution soon.
I could probably do a cram course on Perl, but I'm about to have supper,
and after that it will be dreamsville for this old body.
At least I'm back to where I was earlier, with Cleanfeed running without
the local file.
--
John
No Microsoft, Apple, AT&T, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.
The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID:
<gp46i8$q53$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!feeder.erje.net!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mailReferences:
<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> <gp41m8$1i3$6@tioat.net>Show Full Headers
Complete Article Headers
Message-ID: <gp46i8$q53$1@optima7.xanadu-bbs.net> Subject: Re: Can Cleanfeed filter on a specific user? Date: Mon, 09 Mar 2009 17:51:51 -0500 From: "John F. Morse" <xanadu.bbs@example.invalid> 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> <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!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!feeder.erje.net!nntp.club.cc.cmu.edu!74.222.216.191.MISMATCH!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 54 Reply-To: dont.bother NNTP-Posting-Host: n100.xanadu-bbs.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1236639112 26787 192.168.89.210 (9 Mar 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 9 Mar 2009 22:51:52 +0000 (UTC) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) In-Reply-To: <gp41m8$1i3$6@tioat.net>