Article View: news.software.nntp
Article #73580NNTPCache spam.filter ... not working
From: [H]omer
Date: Tue, 02 May 2006 23:13
Date: Tue, 02 May 2006 23:13
62 lines
3419 bytes
3419 bytes
I've been using nntpcache (3.0.1) for a few days now, and everything is working correctly, except for the "spam.filter". The default expression, included with the source "spam.filter", is: Subject: 10001 nocase (money|cash|dollar|\$.*\$|^\$|\$$)| (great |business).*(opportunity|venture)| (rich |succ?ess).*(fast|quick)|((free|f r e e) offer)|(spam ) I've just tested this by posting a message to alt.test with the subject "great business opportunity", and I'm afraid when I "fetched" the new articles it wasn't filtered out. So I looked at the nntpcache.config, and the relevant parts all seem to be correct: groupSecurity on ... # filter articles by scanning article and/or header content # according to the filters specified in the access file. # our content filtering routines are as greased as # a lawyer-turned bail bondsman on Prince William Sound beech # demonstrating Reef Tan, but you may find yourself getting # wet if a lot of traffic comes in. You need to have groupSecurity # on for this to have proper effect. contentFilters on # as above, but for XOVER and XHDR commands. You can only # filter these commands based on header patterns, not article # content. filtering is transparent as XOVERs and XHDRs # are used to build the list of messages in a group. xoverFilters on Then in nntpcache.access: 192.168.0.2 * read,post,filter,auth=user/passwd;pipe spam.filter But the spam filter just doesn't seem to have any effect. Like I said, everything else works; in fact I'm posting through nntpcached now, but this spam.filter has got me stumped. Assuming I do ever get it working, would the following regex work ok, as a kind of killfile for bozos?: From: 10001 nocase name1@place1\.com| name2@place2\.com| name3@place3\.com This regex is in spam.filter right now, but also has no effect. AFAIK if there are syntax errors in the spam filter, then nntpcache will refuse to start, failing with an error regarding the spam filter. So it would appear to be syntactically correct, anyway. So what gives ... why doesn't the spam filter work? -- K. /* values of ß will give rise to dom! */
Technical Details
Message-ID:
<1146611633.982613@sky>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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!sn-xt-sjc-03!sn-xt-sjc-01!sn-post-sjc-01!supernews.com!news.supernews.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <1146611633.982613@sky>
Subject: NNTPCache spam.filter ... not working
Date: Wed, 03 May 2006 00:13:47 +0100
From: "[H]omer" <spam@uce.gov>
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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!sn-xt-sjc-03!sn-xt-sjc-01!sn-post-sjc-01!supernews.com!news.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Genesis-X
MIME-Version: 1.0
X-Enigmail-Version: 0.94.0.0
OpenPGP: id=82FD6798;
url=http://www.genesis-x.nildram.co.uk/filez/homer.asc
X-Face: 62=@j|H'oAEd]RAKT:)ZkeO`4jqP>+AI[cM:j7x8xva}^Pv2u8#\Sr1?n=&l(=v7qqMnYk[1L0(O{{WluNooPqQW$ObB'7J8\8s7U9R?jn!G^a(I*~@P&4QQK.hEf@[CVf}%?DoY]o
X-Intellegentia-Vires: From Understanding Comes Strength
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Cache-Post-Path: sky!kgr@genesis
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
X-Complaints-To: abuse@supernews.com
Lines: 62