Krispisen a écrit :
> Hi !
> 
> I found this in the bogofilter FAQ :
> 
> How can I use SpamAssassin to train Bogofilter?
> If you have a working SpamAssassin installation (or care to create one), you
> can use its return codes to train bogofilter. The easiest way is to create a
> script for your MDA that runs SpamAssassin, tests the spam/non-spam return
> code, and runs bogofilter to register the message as spam (or non-spam). The
> sample procmail recipe below shows one way to do this:
> BOGOFILTER = "/usr/bin/bogofilter"
> BOGOFILTER_DIR = "training"
> SPAMASSASSIN = "/usr/bin/spamassassin"
> :0 HBc
> * ? $SPAMASSASSIN -e
> #spam yields non-zero
> #non-spam yields zero
> | $BOGOFILTER -n -d $BOGOFILTER_DIR
> #else (E)
> :0Ec
> | $BOGOFILTER -s -d $BOGOFILTER_DIR
> :0fw
> | $BOGOFILTER -p -e
> :0:
> * ^X-Bogosity:.Spam
> spam
> :0:
> * ^X-Bogosity:.Ham
> non-spam
> 
> 
> but my problem is.. i have only postfix, not procmail.

and you need nor postfix nor procmail to do that. you just need to run
the right bogo command on the right message, and the right message is
what SA tells you.

Note however that this isn't science... your bogo will learn sa
decisions, not what is spam and what is ham. but that's what Bayesian
proponents say when we tell'em "seems good, I'll try it when I'll get no
more spam. for now, I can't afford to wait until it learns".

Reply via email to