Article View: news.software.nntp
Article #80312Re: Can Cleanfeed filter on a specific user?
From: John F. Morse
Date: Mon, 09 Mar 2009 21:16
Date: Mon, 09 Mar 2009 21:16
35 lines
2470 bytes
2470 bytes
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. ;-)
--
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:
<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!border1.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.unit0.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>Show Full Headers
Complete Article Headers
Message-ID: <gp40v2$oir$1@optima7.xanadu-bbs.net> Subject: Re: Can Cleanfeed filter on a specific user? Date: Mon, 09 Mar 2009 16:16:18 -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> 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!border2.nntp.ams.giganews.com!nntp.giganews.com!news.unit0.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: 35 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 1236633378 25179 192.168.89.210 (9 Mar 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 9 Mar 2009 21:16:18 +0000 (UTC) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) In-Reply-To: <gp3rel$1i3$2@tioat.net> X-Original-Bytes: 2255