Article View: news.software.nntp
Article #80301Re: Can Cleanfeed filter on a specific user?
From: Steve
Date: Mon, 09 Mar 2009 16:40
Date: Mon, 09 Mar 2009 16:40
39 lines
2479 bytes
2479 bytes
On Mon, 09 Mar 2009 11:15:41 -0500, John F. Morse wrote in
Message-Id: <gp3fbd$k29$1@optima7.xanadu-bbs.net>:
> Here is what I have added to the bottom of the sub local_filter_first
> (the "from_name_here" is the actual name in the header From entry):
[snip]
Hi John,
It looks like you're using the example cleanfeed.local supplied with
cleanfeed-20020501. I'd suggest you use this for examples rather than
going live with it. It contains various sections that are specific to
the environment it was created on. For example:
$localpost = 1 if $hdr{'X-Trace'} and $hdr{'X-Trace'} =~ /\.inwind\.it /;
This will only work if your domain is inwind.it, so anything that sits
within the "if localpost" conditional will not work.
I'd suggest keeping that file as a reference and creating your own from
scratch. All you want at the moment in local_filter_first is:
sub local_filter_first {
if ($hdr{'From'} =~ /$from_name_here/) {
return reject('Spam');
};
I'd further suggest:
* Delete all the other local_filter sections and create them as needed.
* Keep local_config for defining things specific to your environment.
* Use local_filter_reject to log what you're filtering.
* Keep the few lines at the bottom that reside outside any functions,
they're important.
--
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:
<slrngrahju.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-mailReferences:
<gou9pu$a8c$1@optima7.xanadu-bbs.net> <80ocwdgpxd.fsf@banana.shacknet.nu> <gp3fbd$k29$1@optima7.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <slrngrahju.6et.steve@news.mixmin.net> Subject: Re: Can Cleanfeed filter on a specific user? Date: Mon, 09 Mar 2009 16:40:30 +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> 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: Mon, 9 Mar 2009 16:40:30 +0000 (UTC) User-Agent: slrn/pre1.0.0-2 (Linux)