🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by [H]omer Tue, 02 May 2006 23:13
NNTPCache spam.filter ... not working
#73580
Author: [H]omer
Date: Tue, 02 May 2006 23:13
62 lines
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! */
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads