🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Jim Seymour Sun, 08 Jul 2001 23:34
nntpcache filtering
#53167
Author: Jim Seymour
Date: Sun, 08 Jul 2001 23:34
32 lines
1739 bytes
Hi There,

Perhaps I'm just a mite dense, but I can't make sense of much of the
documentation in nntpcache's "spam.filter".

I want to simply be able to enter expressions in there and have
articles matching to be discarded.  Or at least not appear to the
client.

I can make no sense of the discussion about "weight."

For example, to eliminate the results of a recent "HipCrime" (or
clone) newsgroup pollution, I tried:

    Path: 10001 nocase some\.host\.path

based on the "Subject:" sample already contained in the file.  Had no
effect.

I even killed and restarted nntpcached--no help.

Can anybody explain, in something at least approaching coherent
English, how files like "spam.filter" are supposed to work?


TIA,
Jim
-- 
Jim Seymour                  | PGP Public Key available at:
jseymour@jimsun.LinxNet.com  | http://www.uk.pgp.net/pgpnet/pks-commands.html
http://jimsun.LinxNet.com    |
Re: nntpcache filtering
#53169
Author: those who know me have no need o...
Date: Mon, 09 Jul 2001 02:18
37 lines
2174 bytes
<994635297.593931@jimsun> divulged:

>I can make no sense of the discussion about "weight."

which part makes no sense?  the weight is the amount to add to the current
article's score (if you don't use the * or / prefix).  if the score reaches
100 the article is filtered, if it reaches 10000 no further scoring is
done, e.g., 

        From:    10001  nocase  @spammers-r-us
        Subject:    50  nocase  money.*fast
        References: 50  nocase  @idiots-r-us

specifies that an article that has a `from' containg `@spammers-r-us' is
filtered and no further matching is performed.  otherwise an article has to
match the 'money.*fast' regex in the subject _and_ have a referenced
message-id containing `@idiots-r-us'.

>For example, to eliminate the results of a recent "HipCrime" (or
>clone) newsgroup pollution, I tried:
>
>    Path: 10001 nocase some\.host\.path

- filters are applied against the headers while they are being retrieved
using either an xover or xhdr command from the source server.

- path is not in a standard overview record.

- some servers will not return anything (useful) for xhdr requests for
non-overview headers.

so, filtering on path will fail when used against certain source servers,
e.g., typhoon.

-- 
okay, have a sig then
Re: nntpcache filtering
#53177
Author: Jim Seymour
Date: Mon, 09 Jul 2001 12:54
72 lines
3556 bytes
In article <9ib49j01hvu@enews2.newsguy.com>,
	those who know me have no need of my name <not-a-real-address@usa.net> writes:
> <994635297.593931@jimsun> divulged:
> 
>>I can make no sense of the discussion about "weight."
> 
> which part makes no sense?  

Well, the entire "weight" thing, the way it's explained in the
included "spam.filter" file, made no sense to me but...

>                             the weight is the amount to add to the current
> article's score (if you don't use the * or / prefix).  if the score reaches
> 100 the article is filtered, if it reaches 10000 no further scoring is
> done, e.g., 
> 
>         From:    10001  nocase  @spammers-r-us
>         Subject:    50  nocase  money.*fast
>         References: 50  nocase  @idiots-r-us
> 
> specifies that an article that has a `from' containg `@spammers-r-us' is
> filtered and no further matching is performed.  otherwise an article has to
> match the 'money.*fast' regex in the subject _and_ have a referenced
> message-id containing `@idiots-r-us'.

...that was *perfect*!  Now I understand.  Thanks!  I would only
add, to make it *lucidly* clear:

    "... if the score reaches 10000, no further scoring is done (in
     other words: no further filtering statements are processed),
     e.g.,"

> 
>>For example, to eliminate the results of a recent "HipCrime" (or
>>clone) newsgroup pollution, I tried:
>>
>>    Path: 10001 nocase some\.host\.path
> 
> - filters are applied against the headers while they are being retrieved
> using either an xover or xhdr command from the source server.
> 
> - path is not in a standard overview record.

Yeah, after posting my question, something "clicked," I took a look
at the xover fields (in nntpcache.config) and figured that out.

> 
> - some servers will not return anything (useful) for xhdr requests for
> non-overview headers.

Does nntpcache then automatically issue an xhdr request if it sees
something like "Path: ..." in the filter expressions?

Is there any way to tell, say in the debug output, whether nntpcache
is doing this and what the response/result is?

> 
> so, filtering on path will fail when used against certain source servers,
> e.g., typhoon.

I suppose I could test this by telnet'ing to the news server and
manually issuing the appropriate xhdr request.  Do you (or somebody
else) either know the syntax or where I might look it up?


Thanks much,
Jim
-- 
Jim Seymour                  | PGP Public Key available at:
jseymour@jimsun.LinxNet.com  | http://www.uk.pgp.net/pgpnet/pks-commands.html
http://jimsun.LinxNet.com    |
Re: nntpcache filtering
#53423
Author: those who know me have no need o...
Date: Mon, 23 Jul 2001 11:22
11 lines
1079 bytes
<994683243.111693@jimsun> divulged:

>I suppose I could test this by telnet'ing to the news server and
>manually issuing the appropriate xhdr request.  Do you (or somebody
>else) either know the syntax or where I might look it up?

xhdr header range|message-id

-- 
okay, have a sig then
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