[bogofilter] using block_on_subnets

David Relson relson at osagesoftware.com
Thu Apr 29 14:01:45 CEST 2004


On 29 Apr 2004 07:54:23 -0400
Tom Anderson wrote:

> On Thu, 2004-04-29 at 07:36, David Relson wrote:
> > "Any" covers a lot of territory:-)  Doing all the work in bogoutil
> > would require reading the whole wordlist and applying the wildcard.
> 
> Would it be difficult to insert a regular expression at the datastore
> level?  I browsed through the code, but don't feel qualified to try to
> patch something in myself.
> 
> > A bit more complex, but using the command line's capabilities, is to
> > use"bogoutil -d | egrep | awk print $1 | bogoutil -p".
> 
> Ok, at which point is the wildcard token declared here.  I'm guessing
> as an argument to egrep, but I ended up with a broken pipe :(
> 
> Tom

Tom,

I don't know if BerkeleyDB has builtin support for wildcarding...  My
guess would be that it doesn't, but I might be wrong.

If memory serves, the command sequence is:

  bogoutil -d $path/wordlist.db \
    | egrep "expr" \
    | awk '{print $1}' \
    | bogoutil -p $path/wordlist.db

Enjoy!

David



More information about the Bogofilter mailing list