'mail1_config.inc.php', // 'mail2.domain.tld' => 'mail2_config.inc.php', // ); $config['sauserprefs_host_config'] = null; // default settings // these are overridden by $GLOBAL and user settings from the database $config['sauserprefs_default_prefs'] = array( 'required_score' => 5, 'rewrite_header Subject' => '{{ roundcube_sauserprefs_subject }}', 'ok_languages' => 'all', 'ok_locales' => 'all', 'fold_headers' => 1, 'add_header all Level' => '_STARS(*)_', 'use_razor1' => 0, 'use_razor2' => 0, 'use_pyzor' => {{ roundcube_sauserprefs_pyzor_enabled }}, 'use_dcc' => 0, 'report_safe' => {{ roundcube_sauserprefs_report_safe }}, {% if roundcube_sauserprefs_bayes_enabled %} 'use_bayes' => 1, 'bayes_auto_learn' => {{ roundcube_sauserprefs_bayes_autolearn }}, 'bayes_auto_learn_threshold_nonspam' => {{ roundcube_sauserprefs_bayes_autolearn_threshold_nospam }}, 'bayes_auto_learn_threshold_spam' => {{ roundcube_sauserprefs_bayes_autolearn_threshold_spam }}, 'use_bayes_rules' => {{ roundcube_sauserprefs_bayes_rules }}, {% endif %} {% if roundcube_sauserprefs_autowhitelist_enabled %} 'use_auto_whitelist' => 1, {% else %} 'use_auto_whitelist' => 0, {% endif %} 'skip_rbl_checks' => {{ roundcube_sauserprefs_skip_rbl_checks }}, 'score USER_IN_BLACKLIST' => 10, 'score USER_IN_WHITELIST' => -10 ); // score options // define the ranges for the various score select boxes // '[field name]' => array('min' => [min], 'max' => [max], 'increment' => [increment], 'extra' => array()) // note: the 'extra' key is optional and should contain further arrays with min, max and increment keys $config['sauserprefs_score_options'] = array( '*' => array('min' => {{ roundcube_sauserprefs_score_opts_min }}, 'max' => {{ roundcube_sauserprefs_score_opts_max }}, 'increment' => 1), '_bayesnonspam' => array('min' => -1, 'max' => 1, 'increment' => 0.1), '_bayesspam' => array('min' => 1, 'max' => 20, 'increment' => 1), '_score_user_blacklist' => array('min' => 0, 'max' => 100, 'increment' => 10, 'extra' => array(array('min' => 1, 'max' => 10, 'increment' => 1))), '_score_user_whitelist' => array('min' => -100, 'max' => -1, 'increment' => 10, 'extra' => array(array('min' => -10, 'max' => -1, 'increment' => 1))) ); // delete user bayesian data stored in database // the query can contain the following macros that will be expanded as follows: // %u is replaced with the username from the sauserprefs_userid setting above // use an array to run multiple queries // set to null to disable this option // eg. $config['sauserprefs_bayes_delete_query'] = array( // 'DELETE FROM bayes_seen WHERE id IN (SELECT id FROM bayes_vars WHERE username = %u);', // 'DELETE FROM bayes_token WHERE id IN (SELECT id FROM bayes_vars WHERE username = %u);', // 'DELETE FROM bayes_vars WHERE username = %u;' // ); $config['sauserprefs_bayes_delete_query'] = null; // allowed languages // set to array of language codes to limit the language list available for the ok_languages option // eg array('en', 'es', 'ru', 'zh'); // see the README for a full list of supported languages // set to null for all possible languages $config['sauserprefs_langs_allowed'] = null;