"Doug Eubanks" <[EMAIL PROTECTED]> writes: > Is it possible to create a custom rule and have it applied only for > certain users? We are using a MySQL database for the preferences and > would like to write a rule that filters out common pornographic terms > and assigns them a VERY high score to start with. Then we want to > give the user the ability to have this rule applied to their address > or not. I am 95% sure I can write the rule myself, but how would I > set the preference in the MySQL server to have that rule activated. > In short, I need to know what what values to use in the preference and > value fields of the MySQL record.
Yes, it's possible, although I'm not sure I'd bother writing phrase rules for a site. You're going to get lots of false positives (which will have a large effect given that you plan on assigning a high score) unless it's a really well-tested rule on multiple large corpuses. People aren't so good at setting the right score which is why we use a genetic algorithm to set scores. At that point, I think you might as well just submit the rule to the SA Bugzilla for evaluation and testing. Anyway, for any site-wide rule you write, put it in local.cf along with a score of 0.0. If users want to use it, then they can assign a higher score in their user_prefs file, activating the rule. Rules with a score of zero are not run. Daniel -- Daniel Quinlan Linux, open source, and http://www.pathname.com/~quinlan/ anti-spam consulting ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk