Bogofilter does not verbose output anymore
Chris Wilkes
cwilkes-bf at ladro.com
Thu Nov 13 00:51:55 CET 2003
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
More information about the Bogofilter
mailing list