Michael Parker wrote:
>
> 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
>
>
That's what I would like to avoid. I think it's silly they made the option
to pass a username to the sa-learn command, but not to the spamassassin
command.
Someone sudjested to use spamc/spamd, but it has no option to pass a mbox
command to it, so I can't use that one either.
--
View this message in context:
http://www.nabble.com/Learn-Ham-Spam-to-more-than-Bayes-DB-tf4621792.html#a13201318
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.