🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53177

Re: nntpcache filtering

#53177
From: 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    |
Technical Details
Message-ID: <994683243.111693@jimsun>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <994635297.593931@jimsun> <9ib49j01hvu@enews2.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <994683243.111693@jimsun>
Subject: Re: nntpcache filtering
Date: Mon, 09 Jul 2001 12:54:04 -0000
From: jseymour@LinxNet.com (Jim Seymour)
References: <994635297.593931@jimsun> <9ib49j01hvu@enews2.newsguy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.nntp
Organization: There Is No Organization
Mime-Version: 1.0
X-Newsreader: knews 1.0b.1
Content-Type: text/plain; charset=us-ascii
Cache-Post-Path: jimsun!unknown@localhost
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
X-Complaints-To: newsabuse@supernews.com
Lines: 71