Bogofilter does not verbose output anymore
David Relson
relson at osagesoftware.com
Thu Nov 13 01:20:15 CET 2003
On Wed, 12 Nov 2003 15:51:55 -0800
Chris Wilkes <cwilkes-bf at ladro.com> wrote:
> On Thu, Nov 13, 2003 at 12:35:14AM +0100, Johannes Klug wrote:
> >
> > ==============================
> > #!/bin/sh
> > BOGOFILTER="/usr/bin/bogofilter";
> > SPAMDIR="/home/joy/Mail/Spam/cur";
> > SPAMARCH="/home/joy/Mail/Spam-Archiv/cur";
> >
> > cd $SPAMDIR
> > for i in *
> > do $BOGOFILTER -s -I $i -F -v
> > mv $i $SPAMARCH
> > done
> > ==============================
>
> I would make a slight change to your script:
>
> for i in $SPAMDIR/*; do
> $BOGOFILTER -s -I $i;
> $BOGOFILTER -v -I $i && mv $i $SPAMARCH;
> done
>
> That way you only move the emails that are classified as spams,
> leaving behind the ones that still don't register as such. Granted
> you're doing two checks per email now.
>
> Chris
Chris,
As originally written the script registers a spam message and then moves
it to the archive. With your modification, multiple runs of the script
will keep registering a message until it scores as spam. I'm not at all
sure that's what Johannes wants. I know I don't keep registering a
message until it scores "correctly". Also, multiple registering is
contrary to the bayesian principle.
David
More information about the Bogofilter
mailing list