Changing bogofilter output sense

Gyepi SAM gyepi at praxis-sw.com
Fri Jul 11 01:41:09 CEST 2003


On Thu, Jul 10, 2003 at 02:55:45PM -0700, Rick Mann wrote:
> But you can also execute a program or shell script. If the result of the
> program is 0, then it's considered a match, and the specified disposition is
> taken.

Use a wrapper around bogofilter

----begin bogofilter-invert.sh
#!/bin/sh
bogofilter
if [ $? -eq "0" ]; then
 exit 1
elif [ $? -eq "1" ]; then
 exit 0
else
 exit $?
fi

----end

> In order to do this, I need to write a line like:
> 
> pipe bogofilter accept

pipe bogofilter-invert.sh accept

Once it all works, we'd certainly appreciate a little writeup to make it
easier for the next person. See the docs directory for examples.

-Gyepi





More information about the Bogofilter mailing list