Ignore lists [was: Keeping the cruft out ...]

Dave Lovelace dave at firstcomp.biz
Fri Mar 5 16:04:18 CET 2004


Greg McCann wrote, in small part:
> 
> This is tested...
> 
> bogoutil -d wordlist.db | fgrep -v -f ignore.txt | bogoutil -l wordlist.new.db
> mv wordlist.new.db wordlist.db
> 
> It is somewhat effective, but I see a couple of limitations.
> 
> 1.  It does not do whole-word matching.  For example, putting "sex" in your ignore list will elimate "Middlesex", "sextant", etc. from your wordlist.  Is there a way to get regular expressions to work with this - something like "^sex$" or maybe "^sex .*", so it would only match the whole word?  I couldn't get it to work.  When I tried to put regexp characters into my ignore list, it took them literally.
> 

Possibly it took them literally because you were using fgrep instead of
grep or egrep?  Just a thought ...

-- 
- Dave Lovelace
  dave at firstcomp.biz
  davel at cyberspace.org




More information about the Bogofilter mailing list