On Sun, Jun 20, 2004 at 09:50:31AM -0400, Jeff Koch wrote: > > > I read the doc's on the new 'Using A SQL Database for Bayesian Storage > Module' and I have a question on how to use the new user preference: > > bayes_sql_override_username someusername > > Can someone provide an example of how and where this is used? For example, > can it be used in the MySQL 'user pref' table or is it only to be used in > /$USER_HOME/.spamassassin/local.cf config files?
It is a user pref so can be set in user_prefs file, I've never put it into the SQL userpref table, but it should be possible. There are several uses for the preference: 1) You set it in your local.cf to something like "global" and now you have a global bayes database that everyone will use. 2) You can group like people. For instance, you can let certain departments share a bayes database. Sales gets their own database, marketing gets their own, development gets their own, etc etc etc. Since these folks will in theory be getting like minded ham it allows you to group together a larger sample than you would for an individual user. 3) You can use it to cheat sa-learn. Unfortunately, sa-learn doesn't have the ability to perform operations as a specific user (it uses the user that is actually running the command). You can get fancy and learn as a specific user by settings the override preference for a specific run. The best way to perform this sort of operation is left as an exercise to reader. Michael
