Re: Learn Ham/Spam to more than Bayes DB
Magnus Anderson wrote:
> Hi, > > I have a script that runs every night with sa-learn to learn new ham/spam > messages for every user. > I do this with running these commands > > /usr/bin/sa-learn --ham --no-sync -u {$_array['sa_user']} {$_dir['inbox']} > /usr/bin/sa-learn --ham --no-sync -u {$_array['sa_user']} {$_dir['ham']} > /usr/bin/sa-learn --spam --no-sync -u {$_array['sa_user']} {$_dir['spam']} > > These mail boxes are in mbox format. I also rely on -u for overriding the > username, as I use Bayes and AWL in MySQL for eatch username. > > The problem now is though that I want to report ham/spam to more than just > my Bayes DB if users want to do that. I want to report spam to > Pyzor,Razor,Dcc and SpamCop. > > But sa-learn doesn't support this. Does anyone have an idea on how to make > this work?
spamassassin -r does what you want, but there is no way to specify the
username on the command line. You could write a script using the SA API.
Michael
Received on Sun Oct 14 12:31:40 2007
This archive was generated by hypermail 2.1.8
: Fri Jul 04 2008 - 15:02:38 EDT
|