[bogofilter] using block_on_subnets
Dave Lovelace
dave at firstcomp.biz
Thu Apr 29 15:13:29 CEST 2004
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 :(
>
Yes, you'd need a regular expression as an argument for egrep. The awk
command also is incorrect as given. That part of the pipeline needs to say:
awk '{print $1}'
--
- Dave Lovelace
dave at firstcomp.biz
davel at cyberspace.org
More information about the Bogofilter
mailing list