Woodworking (rec.woodworking) Discussion forum covering all aspects of working with wood. All levels of expertise are encouraged to particiapte.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Wood Butcher
 
Posts: n/a
Default Solution to NFilter problems

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:[^:]*:[^:]*:.*







  #2   Report Post  
Doug Miller
 
Posts: n/a
Default Solution to NFilter problems

In article bAihb.716796$Ho3.163394@sccrnsc03, "Wood Butcher" wrote:
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.

[snip]

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

rec.woodworking Drop xref:.*rec/.pets.*


Should be a backslash \ instead of forward slash /

#Drop x-posted to 3+ groups
rec.woodworking Drop xref:[^:]*:[^:]*:[^:]*:.*


xref:[^:]+{3,}

#Drop x-posted to 2+ groups
#rec.woodworking Drop xref:[^:]*:[^:]*:.*


xref:[^:]+{2,}


--
Regards,
Doug Miller (alphageek-at-milmac-dot-com)
  #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! =-----
  #4   Report Post  
Wood Butcher
 
Posts: n/a
Default Solution to NFilter problems

Doug- Thanks for the / vs \ correction.

When I tested:
rec.woodworking Flag:X-POST3+ xref:[^:]+{3,}
I found it flags 4 or more xposted groups.
Likewise,
rec.woodworking Flag:X-POST2 xref:[^:]+{2,}
flags 3 or more xposted groups.

In trying to flag 2+ groups the obvious
rec.woodworking Flag:X-POST2 xref:[^:]+{1,}
also flagged 3 or more xposted groups.

How would your expression be modified to select for
2+ groups?

When testing I created a second account for newsgroups
and subscribed and unsubscribed to the wreck as many
times as needed to test my different settings. This way I
could use the real troll posts instead of running test posts
everywhere. I also changed all Drops to Flags so I could
see if the hits were on target vs false positives.

Art




"Doug Miller" wrote in message
y.com...

rec.woodworking Drop xref:.*rec/.pets.*


Should be a backslash \ instead of forward slash /

#Drop x-posted to 3+ groups
rec.woodworking Drop xref:[^:]*:[^:]*:[^:]*:.*


xref:[^:]+{3,}

#Drop x-posted to 2+ groups
#rec.woodworking Drop xref:[^:]*:[^:]*:.*


xref:[^:]+{2,}


--
Regards,
Doug Miller (alphageek-at-milmac-dot-com)




  #5   Report Post  
Doug Miller
 
Posts: n/a
Default Solution to NFilter problems

In article Gtlhb.532205$cF.196237@rwcrnsc53, "Wood Butcher" wrote:
Doug- Thanks for the / vs \ correction.

When I tested:
rec.woodworking Flag:X-POST3+ xref:[^:]+{3,}
I found it flags 4 or more xposted groups.


Hmmm. Back to the drawing board for me, I guess.

Likewise,
rec.woodworking Flag:X-POST2 xref:[^:]+{2,}
flags 3 or more xposted groups.

In trying to flag 2+ groups the obvious
rec.woodworking Flag:X-POST2 xref:[^:]+{1,}
also flagged 3 or more xposted groups.

How would your expression be modified to select for
2+ groups?


Dunno -- I thought the other would work. Frankly, I didn't pay much attention
to whether it was catching 3+ crossposts or 4+, either way, I didn't want to
see them. I'm not sure that we really want to kill posts that are cross-posted
to more than just two groups: it seems legitimate to me that a post might be
relevant to at least three of rec.woodworking, rec.crafts.woodturning, abpw,
or abpf.

This works real well for me:

# KEEP anything crossposted to abpw, abpf, or rcw ...
#
rec.woodworking sco-100 xref:*alt.binaries.pictures.woodworking.*
rec.woodworking sco-100 xref:*alt.binaries.pictures.furniture*
rec.woodworking sco-100 xref:*rec.crafts.woodturning*
#
# ... and drop anything else that was crossposted into the alt. hierarchy
#
rec.woodworking sco+100 xref:*alt.*
rec.woodworking drop sco100


--
Regards,
Doug Miller (alphageek-at-milmac-dot-com)
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
tig welding problems drew j. Metalworking 4 November 25th 03 09:48 PM
multiple simultaneous washing machine problems Don Sannella UK diy 1 November 4th 03 11:25 AM
Pilot light problems Bob Minchin UK diy 5 October 19th 03 11:42 PM
Tiling Shower Area - adhesive spreading and tile cutting problems JohnB UK diy 7 July 20th 03 10:43 AM
Solving Condensation Problems BigWallop UK diy 2 July 17th 03 01:35 AM


All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"