View Single Post
  #3   Report Post  
Young Carpenter
 
Posts: n/a
Default Solution to NFilter problems

Thanks


--
Young Carpenter

"Violin playing and Woodworking are similar, it takes plenty of money,
plenty of practice, and you usually make way more noise than intended"

{Put the fiddler back "on" the roof to reply}
"Wood Butcher" wrote in message
news:bAihb.716796$Ho3.163394@sccrnsc03...
NFilter didn't seem to be executing many lines which
I had in my nfilter.dat file. These lines I copied from
other users posts. It turns out that for these to function
properly regexp must be turned on. To do this go to
Edit-Configuration-General and check the "Enable
Regular Expressions" box in NFilter.

This immediately caused a major problem. The line in
nfilter.dat reading "rec.woodworking Drop xref:*:*:*:*"
now caused every post to be dropped. The solution is
to replace it with the following.
To drop items xposted to 2 or more groups:
rec.woodworking Drop xref:[^:]*:[^:]*:.*
To drop items xposted to 3 or more groups:
rec.woodworking Drop xref:[^:]*:[^:]*:[^:]*:.*

Filter for specific words in the subject line as follows.
rec.woodworking Drop subject:.*[Jj][Ee][Ww][Ss].*
This targets the word "Jews", with any combination of
upper & lower case, anywhere in the subject line.

My nfilter.dat file works really well now and I've
added the text to the end of this post. These have been
tested by replacing "Drop" with "Flag:JEWS" as in the
above example.

I had to learn the regexp syntax for this effort and I
don't pretend to be an expert. So if those who are
can improve on what I've done - please do, and post it.

Tutorials on Regular Expressions can be found at
http://etext.lib.virginia.edu/helpsheets/regex.html
http://sitescooper.org/tao_regexps.html

Art

PS Yes David, feel free to incorporate anything from
this post into the faq.

**********************************************
rec.woodworking Drop from:.*[Pp][Uu][Pp]+[Yy].*
rec.woodworking Drop subject:.*[Jj][Ee][Ww][Ss].*
rec.woodworking Drop subject:.*[Cc][Hh][Rr][Ii][Ss][Tt][Ii][Aa][Nn].*
rec.woodworking Drop subject:.*[Mm][Uu][Ss][Ll][Ii][Mm].*
rec.woodworking Drop subject:.*[Jj][Ee][Ss][Uu][Ss].*
rec.woodworking Drop subject:.*[Pp][Ee][Nn][Ii][Ss].*
rec.woodworking Drop subject:.*[Ff][Uu][Cc][Kk].*
rec.woodworking Drop subject:.*[Cc][Oo][Cc][Kk].*
rec.woodworking Drop subject:.*[Ss][Hh][Ii][Tt].*
rec.woodworking Drop xref:.*rec/.pets.*
#Drop x-posted to 3+ groups
rec.woodworking Drop xref:[^:]*:[^:]*:[^:]*:.*
#Drop x-posted to 2+ groups
#rec.woodworking Drop xref:[^:]*:[^:]*:.*











-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----