Justin Mason wrote: > Per Jessen writes: >> I posted this to spamassassin-general, but I guess that wasn't quite the >> right forum. >> >> I'm using read_scoreonly_config to load new user-settings in an SA daemon >> process (spampd).��Following that�I�do�a�signal_user_changed(). >> However, how do I clear out the score settings from the previous >> read_scoreonly_config() ? For instance, I have a user that uses "score >> MICROSOFT_EXECUTABLE 10", whereas another one doesn't - yet when the >> scoring rules for the latter is loaded, the "MICROSOFT_EXECUTABLE 10" is >> still in effect from the previous one. >> (Note - mysql is not involved at all.) > > Hi Per -- > > currently, there's no way to do this :( The Conf object stays the > same between scans, so prior settings remain active.
Hi Justin, I was afraid of that ... and re-initialising the Conf object per user would presumably be a major performance hit. Although I guess I could load all the default scores again without causing to much upheaval. As a general question, when people use spamd or spampd (as I do) with per-user settings & black/whitelists, how do they sort this little problem out? Or work around it for that matter? /Per Jessen, Zurich
