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

Tom Allison tallison at tacocat.net
Sat Mar 6 01:51:22 CET 2004


Eric Wood wrote:
> Bill McClain wrote:
> 
>>>Greg McCann wrote, in small part:
>>
>>>>1.  It does not do whole-word matching.
>>
>>grep has a -w word-match switch which works with -f and -v. Does that
>>help?
> 
> 
> With grep, one problem with the -w word-match is that is renders a -i ignore
> case useless.  The word-match must still match the case of the
> search-string.
> 
> Now, fgrep's word-match ignore's case if you use the -i .  So "hoooray" for
> fgrep.
> 
> But, fgrep can't handle this senerio when you have spaces strings when
> coming from a -f pattern-file.  So "boooo" for fgrep.
> 
> I found this out the hard way....
> -Eric Wood
> 

Well, it was the best simple thing I could come up with.

fgrep is a lower resouce than grep or egrep, but with obvious 
limitations.  :)

If you really want to pick the list apart and want to address all the 
possible exceptions, then look into processing exclusion list through 
perl...





More information about the Bogofilter mailing list