using systemwide Bogofilter AND user Bogofilter together
Pollywog
croak at shadypond.com
Mon Jun 9 17:49:42 CEST 2003
On Mon, 9 Jun 2003 09:25:27 -0400
Jake Di Toro <karrde+bogofilter at viluppo.net> wrote:
>
> The way I went about it was to not try to run the system or the
> personal. But to run the system in /etc/procmailrc, and then run
> the individual in my ~/.procmailrc. You just need to make sure
> that you correctly specify BOGOFILTER_DIR in both places, and
> access the proper config scripts.
That is what I did, but I did not put BOGOFILTER_DIR in the user
~/.procmailrc. Perhaps that is where I went wrong.
>
> In typing this up it's occured to me how to do it all from the
> /etc/procmailrc.
>
> :0
> * ? test -d $HOME/.bogofilter
> {
> BOGOFILTER_DIR=${HOME}/.bogofilter
>
> :0 fw
> | /usr/local/bin/bogofilter -f -e -p -l -c
> $BOGOFILTER_DIR/config
>
> }
>
> :0 E
> {
> BOGOFILTER_DIR=/var/lib/bogofilter
>
> :0 fw
> | /usr/local/bin/bogofilter -f -e -p -l -c
> $BOGOFILTER_DIR/config
> }
>
> Of course replace command line switches and directories as
> appropiate. But this will only run the user/system as appropiate
> and avoid running bogofilter twice as I'm doing right now.
Thanks, I will try that.
--
Andrew
More information about the Bogofilter
mailing list