| classifier "bayes" { |
| tokenizer { |
| name = "osb"; |
| } |
| cache { |
| } |
| new_schema = true; # Always use new schema |
| store_tokens = false; # Redefine if storing of tokens is desired |
| signatures = false; # Store learn signatures |
| per_user = true; # Enable per user classifier |
| users_enabled = true; |
| min_tokens = 11; |
| backend = "redis"; |
| min_learns = 50; // Should not be bias by too small learning set |
| |
| statfile { |
| symbol = "BAYES_HAM"; |
| spam = false; |
| } |
| statfile { |
| symbol = "BAYES_SPAM"; |
| spam = true; |
| } |
| |
| learn_condition = 'return require("lua_bayes_learn").can_learn'; |
| |
| # Autolearn sample |
| # autolearn { |
| # spam_threshold = 6.0; # When to learn spam (score >= threshold) |
| # ham_threshold = -0.5; # When to learn ham (score <= threshold) |
| # check_balance = true; # Check spam and ham balance |
| # min_balance = 0.9; # Keep diff for spam/ham learns for at least this value |
| #} |
| |
| .include(try=true; priority=1) "$LOCAL_CONFDIR/local.d/classifier-bayes.conf" |
| .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/classifier-bayes.conf" |
| } |