[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bogofilter



On Sat, 26 Jun 2004 14:36:20 +0200
Thomas Letzner <tux@dweeb.de> wrote:


> Mit welchem Befehl kann ich Bogo manuel lernen lassen? Funktioniert
> das ähnlich wie bei sa-learn?
> Also in etwa, bogo_train --ham/--spam  ~/mail/junkdir?

Hallo,

so läufts bei mir:

-------------------------------------
#!/bin/sh

# /home/mhennes/bogo_learn
# train bogofilter with new spam and non-spam
# user is assumed to be "xxxxxx"

GOODDIR="/home/xxxxxx/Mail/debian";
SPAMDIR="/home/xxxxxx/Mail/junk";

cd $SPAMDIR
echo SPAM
for i in *
do
echo Prozessing Mail ID\#$i;
bogofilter -s -v < $i;
done;

cd $GOODDIR
echo NoSPAM
for i in *
do
echo Prozessing Mail ID\#$i;
bogofilter -n -v < $i;
done;

cd /home/xxxxxx/Mail/Privat
echo NoSpam
for i in *
do
echo Prozessing Mail ID\#$i;
bogofilter -n -v < $i;
done;
--------------------------------------

bei Bedarf weiteres hinzufügen, findet sich auch in der Doku.

MfG	Martin

-- 
carpe diem



Reply to: