On Tue, Jun 23, 2015 at 12:48 PM, Bill Cole <sausers-20150...@billmail.scconsult.com> wrote: >> Yes, I want a system-wide bayes db. And I am running spamd and spamc >> and I assume that is all working (but of course I have no idea if it >> really is). >> >> But I want users to be able to put spams that get through into >> ~/Maildir/.LearnAsSpam and then, every once in a while, I want to run >> sa-learn on all of those messages for the system-wide db. >> >> So can that be done without running sa-learn as root? > > > Of course. As I said in other words that you quoted but apparently > misunderstood: > > ***** sa-learn IS NOT THE RIGHT TOOL FOR LEARNING MESSAGES INTO A > SYSTEM-WIDE DB **** > > Use 'spamc -L (spam|ham)'. Have users run it if they like, or have it run as > the user whose magic maildirs are being learned. It talks to the spamd > daemon, running as the spamd user, managing the system-wide Bayes DB. If it > isn't run as root, it can't do random violence limited only by your capacity > for typos.
Well, ever since we stopped using The UNIX® Time-Sharing System back in '87 generally "users" don't run stuff on their own like this anymore. But if spamc -L could consume an entire Maildir without requiring an awk expert, that would be great. Mike