Article View: news.software.nntp
Article #80308Re: Can Cleanfeed filter on a specific user?
From: Son of Serpent Esq
Date: Mon, 09 Mar 2009 19:42
Date: Mon, 09 Mar 2009 19:42
21 lines
1715 bytes
1715 bytes
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.
Technical Details
Message-ID:
<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!border2.nntp.ams.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!tioat.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>Show Full Headers
Complete Article Headers
Message-ID: <gp3rel$1i3$2@tioat.net> Subject: Re: Can Cleanfeed filter on a specific user? Date: Mon, 09 Mar 2009 19:42:13 +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> 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!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: 21 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 19:42:13 +0000 (UTC)