Magnus Anderson wrote: > > > Martin Schütte wrote: >> Magnus Anderson schrieb: >>> So basicly, I want to run the "spamassassin --revoke/--report" commands >>> as a >>> specific username. How can I do that? >> man su >> >> For example: su vscan -c "spamassassin --report ${train_dir_sa_spam}/*" >> (Make sure the user has permission to read the mails.) >> > > The user is not exisiting on the system itself, just inside CommuniGate that > I run. > When I run now I run like "sa-learn --spam --no-sync -u [EMAIL PROTECTED] > /system-path-to-mbox" > > Sorry if I wasn't explaining myself correctly. >
This can be done with the spamd/spamc tell feature. Adding -l to spamd's command line and -C report/revoke for learning through spamc. A report/revoke will do the appropriate bayes stuff even tho the man page isn't clear that it does bayes in addition to the various reporting methods.