diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-filter/spambayes/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-filter/spambayes/files')
-rw-r--r-- | mail-filter/spambayes/files/bayescustomize.ini | 171 | ||||
-rw-r--r-- | mail-filter/spambayes/files/spambayespop3proxy.rc | 22 |
2 files changed, 193 insertions, 0 deletions
diff --git a/mail-filter/spambayes/files/bayescustomize.ini b/mail-filter/spambayes/files/bayescustomize.ini new file mode 100644 index 000000000000..b4eadc7a0a57 --- /dev/null +++ b/mail-filter/spambayes/files/bayescustomize.ini @@ -0,0 +1,171 @@ +[CV Driver] +build_each_classifier_from_scratch: False + +[Categorization] +ham_cutoff: 0.2 +spam_cutoff: 0.9 + +[Classifier] +max_discriminators: 150 +minimum_prob_strength: 0.1 +unknown_word_prob: 0.5 +unknown_word_strength: 0.45 +use_chi_squared_combining: True +x-experimental_ham_spam_imbalance_adjustment: False +x-use_bigrams: False + +[Hammie] +train_on_filter: False + +[Headers] +add_unique_id: True +classification_header_name: X-Spambayes-Classification +clue_mailheader_cutoff: 0.5 +evidence_header_name: X-Spambayes-Evidence +header_ham_string: ham +header_score_digits: 2 +header_score_logarithm: False +header_spam_string: spam +header_unsure_string: unsure +include_evidence: False +include_score: False +include_thermostat: False +include_trained: True +mailid_header_name: X-Spambayes-MailId +notate_subject: +notate_to: +score_header_name: X-Spambayes-Spam-Probability +thermostat_header_name: X-Spambayes-Level +trained_header_name: X-Spambayes-Trained + +[Storage] +cache_expiry_days: 7 +cache_messages: True +cache_use_gzip: False +ham_cache: /var/lib/spambayes/pop3proxy-ham-cache +messageinfo_storage_file: /var/lib/spambayes/spambayes.messageinfo.db +no_cache_bulk_ham: False +no_cache_large_messages: 0 +persistent_storage_file: /var/lib/spambayes/hammie.db +persistent_use_database: dbm +spam_cache: /var/lib/spambayes/pop3proxy-spam-cache +unknown_cache: /var/lib/spambayes/pop3proxy-unknown-cache + +[TestDriver] +best_cutoff_fn_weight: 1.0 +best_cutoff_fp_weight: 10.0 +best_cutoff_unsure_weight: 0.2 +compute_best_cutoffs_from_histograms: True +ham_directories: Data/Ham/Set%d +nbuckets: 200 +percentiles: 5 25 75 95 +pickle_basename: class +save_histogram_pickles: False +save_trained_pickles: False +show_charlimit: 3000 +show_false_negatives: False +show_false_positives: True +show_ham_hi: 0.0 +show_ham_lo: 1.0 +show_histograms: True +show_spam_hi: 0.0 +show_spam_lo: 1.0 +show_unsure: False +spam_directories: Data/Spam/Set%d + +[Tokenizer] +address_headers: from to cc sender reply-to +basic_header_skip: received date x-.* +basic_header_tokenize: False +basic_header_tokenize_only: False +check_octets: False +count_all_header_lines: False +generate_long_skips: True +mine_received_headers: False +octet_prefix_size: 5 +record_header_absence: False +replace_nonascii_chars: False +safe_headers: abuse-reports-to date errors-to from importance in-reply-to message-id mime-version organization received reply-to return-path subject to user-agent x-abuse-info x-complaints-to x-face +skip_max_word_size: 12 +summarize_email_prefixes: False +summarize_email_suffixes: False +x-extract_dow: False +x-fancy_url_recognition: False +x-generate_time_buckets: False +x-pick_apart_urls: False +x-reduce_habeas_headers: False +x-search_for_habeas_headers: False + +[URLRetriever] +x-cache_directory: url-cache +x-cache_expiry_days: 7 +x-only_slurp_base: False +x-slurp_urls: False +x-web_prefix: + +[ZODB] +cache_size: 2000 +event_log_file: +event_log_severity: 0 +folder_dir: +ham_folders: +spam_folders: +zeo_addr: + +[globals] +dbm_type: best +proxy_password: +proxy_server: +proxy_username: +verbose: False + +[html_ui] +allow_remote_connections: localhost +default_ham_action: ham +default_spam_action: spam +default_unsure_action: defer +display_adv_find: False +display_headers: Subject From +display_received_time: False +display_score: False +ham_discard_level: 0.0 +http_authentication: None +http_password: admin +http_user_name: admin +launch_browser: False +port: 8880 +rows_per_section: 10000 +spam_discard_level: 100.0 + +[imap] +expunge: False +filter_folders: INBOX +ham_train_folders: +move_trained_ham_to_folder: +move_trained_spam_to_folder: +password: +server: +spam_folder: +spam_train_folders: +unsure_folder: +use_ssl: False +username: + +[imapserver] +password: +port: 143 +username: + +[pop3proxy] +allow_remote_connections: localhost +listen_ports: +remote_servers: + +[smtpproxy] +allow_remote_connections: localhost +ham_address: spambayes_ham@localhost +listen_ports: +remote_servers: +spam_address: spambayes_spam@localhost +use_cached_message: False + diff --git a/mail-filter/spambayes/files/spambayespop3proxy.rc b/mail-filter/spambayes/files/spambayespop3proxy.rc new file mode 100644 index 000000000000..f2cfe40eddc9 --- /dev/null +++ b/mail-filter/spambayes/files/spambayespop3proxy.rc @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +customize_ini=/etc/bayescustomize.ini + +depend() { + need net +} + +start() { + ebegin "Starting SpamBayes POP3 Proxy daemon" + export BAYESCUSTOMIZE="${customize_ini}" + start-stop-daemon --start --quiet --background --pidfile /var/run/spambayes.pid --make-pidfile --exec /usr/bin/sb_server.py + eend $? +} + +stop() { + ebegin "Stopping SpamBayes POP3 Proxy daemon" + start-stop-daemon --stop --quiet --pidfile /var/run/spambayes.pid --name sb_server.py + eend $? +} |