| Server IP : 217.160.0.212 / Your IP : 216.73.216.71 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1073854427 ( 1073854427) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/share/emacs/28.2/lisp/gnus/ |
Upload File : |
;ELC ;;; Compiled ;;; in Emacs version 28.2 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\312\313\314\315\316DD\317\320\321%\210\312\322\314\315\323DD\324\320\325%\210\312\326\314\315\327DD\330\320\331%\210\312\332\314\315\333DD\334\320\331%\210\312\335\314\315\336DD\337\320\340%\210\312\341\314\315\342DD\343\320\325%\210\312\344\314\315\345DD\346\320\347%\210\312\350\314\315\351DD\352\320\353%\210\312\354\314\315\355DD\356\320\325%\207" [require mail-parse custom-declare-group spam-stat nil "Statistical spam detection for Emacs.\nUse the functions to build a dictionary of words and their statistical\ndistribution in spam and non-spam mails. Then use a function to determine\nwhether a buffer contains spam or not." :version "22.1" :group gnus custom-declare-variable spam-stat-file funcall function #[0 "\300\207" ["~/.spam-stat.el"] 1 #1=""] "File used to save and load the dictionary.\nSee `spam-stat-to-hash-table' for the format of the file." :type file spam-stat-unknown-word-score #[0 "\300\207" [0.2] 1 #1#] "The score to use for unknown words.\nAlso used for words that don't appear often enough." number spam-stat-max-word-length #[0 "\300\207" [15] 1 #1#] "Only words shorter than this will be considered." integer spam-stat-max-buffer-length #[0 "\300\207" [10240] 1 #1#] "Only the beginning of buffers will be analyzed.\nThis variable says how many characters this will be." spam-stat-split-fancy-spam-group #[0 "\300\207" ["mail.spam"] 1 #1#] "Name of the group where spam should be stored.\nIf `spam-stat-split-fancy' is used in fancy splitting rules. Has\nno effect when spam-stat is invoked through spam.el." string spam-stat-split-fancy-spam-threshold #[0 "\300\207" [0.9] 1 #1#] "Spam score threshold in spam-stat-split-fancy." spam-stat-washing-hook #[0 "\300\207" [nil] 1 #1#] "Hook applied to each message before analysis." hook spam-stat-score-buffer-user-functions #[0 "\300\207" [nil] 1 #1#] "List of additional scoring functions.\nCalled one by one on the buffer.\n\nIf all of these functions return non-nil answers, these numerical\nanswers are added to the computed spam stat score on the buffer. If\nyou defun such functions, make sure they don't return the buffer in a\nnarrowed state or such: use, for example, `save-excursion'. Each of\nyour functions is also passed the initial spam-stat score which might\naid in your scoring.\n\nAlso be careful when defining such functions. If they take a long\ntime, they will slow down your mail splitting. Thus, if the buffer is\nlarge, don't forget to use smaller regions, by wrapping your work in,\nsay, `with-spam-stat-max-buffer-size'." (repeat sexp) spam-stat-process-directory-age #[0 "\300\207" [90] 1 #1#] "Max. age of files to be processed in directory, in days.\nWhen using `spam-stat-process-spam-directory' or\n`spam-stat-process-non-spam-directory', only files that have\nbeen touched in this many days will be considered. Without\nthis filter, re-training spam-stat with several thousand messages\nwill start to take a very long time."] 8) #@57 Time stamp of last change of spam-stat-file on this run (defvar spam-stat-last-saved-at nil (#$ . 3099)) #@129 Syntax table used when processing mails for statistical analysis. The important part is which characters are word constituents. (defvar spam-stat-syntax-table (byte-code "\301!\302\303\304#\210\302\305\304#\210\302\306\304#\210\302\307\304#\210\302\310\304#\210\302\311\304#\210\207" [text-mode-syntax-table copy-syntax-table modify-syntax-entry 45 "w" 95 46 33 63 43] 5) (#$ . 3211)) #@46 Whether the spam-stat database needs saving. (defvar spam-stat-dirty nil (#$ . 3609)) #@78 Buffer to use for scoring while splitting. This is set by hooking into Gnus. (defvar spam-stat-buffer nil (#$ . 3701)) #@33 Name of the `spam-stat-buffer'. (defvar spam-stat-buffer-name " *spam stat buffer*" (#$ . 3826)) #@42 Coding system used for `spam-stat-file'. (defvar spam-stat-coding-system (byte-code "\300\301!\203 \301\207\302\207" [mm-coding-system-p emacs-mule raw-text] 2) (#$ . 3929)) #@59 Store a copy of the current buffer in `spam-stat-buffer'. (defalias 'spam-stat-store-current-buffer #[0 "pr\302!q\210\303 \210\304!\210p\211)\207" [spam-stat-buffer-name spam-stat-buffer get-buffer-create erase-buffer insert-buffer-substring] 3 (#$ . 4110)]) #@93 Store a copy of the current article in `spam-stat-buffer'. This uses `gnus-article-buffer'. (defalias 'spam-stat-store-gnus-article-buffer #[0 "rq\210\301 )\207" [gnus-original-article-buffer spam-stat-store-current-buffer] 1 (#$ . 4378)]) #@269 Hash table used to store the statistics. Use `spam-stat-load' to load the file. Every word is used as a key in this table. The value is a vector. Use `spam-stat-ngood', `spam-stat-nbad', `spam-stat-good', `spam-stat-bad', and `spam-stat-score' to access this vector. (defvar spam-stat (make-hash-table :test 'equal) (#$ . 4626)) #@45 The number of good mails in the dictionary. (defvar spam-stat-ngood 0 (#$ . 4962)) #@44 The number of bad mails in the dictionary. (defvar spam-stat-nbad 0 (#$ . 5051)) #@73 Return the number of times this word belongs to good mails. (fn ENTRY) (defalias 'spam-stat-good #[257 "\211\300H\207" [0] 3 (#$ . 5138)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-good speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@72 Return the number of times this word belongs to bad mails. (fn ENTRY) (defalias 'spam-stat-bad #[257 "\211\300H\207" [1] 3 (#$ . 5424)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-bad speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@41 Set the score of this word. (fn ENTRY) (defalias 'spam-stat-score #[257 "\211\203 \211\301H\207\207" [spam-stat-unknown-word-score 2] 3 (#$ . 5707)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-score speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@76 Set the number of times this word belongs to good mails. (fn ENTRY VALUE) (defalias 'spam-stat-set-good #[514 "\300I\207" [0] 5 (#$ . 6007)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-set-good speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@75 Set the number of times this word belongs to bad mails. (fn ENTRY VALUE) (defalias 'spam-stat-set-bad #[514 "\300I\207" [1] 5 (#$ . 6302)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-set-bad speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@47 Set the score of this word. (fn ENTRY VALUE) (defalias 'spam-stat-set-score #[514 "\300I\207" [2] 5 (#$ . 6594)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-set-score speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@59 Return a vector with the given properties. (fn GOOD BAD) (defalias 'spam-stat-make-entry #[514 "\300\301#\211\302!\303I\266\207" [vector nil spam-stat-compute-score 2] 8 (#$ . 6862)]) (byte-code "\300\301\302\303#\304\301\305\306#\207" [function-put spam-stat-make-entry speed -1 put byte-optimizer byte-compile-inline-expand] 5) #@62 Compute the score of this word. 1.0 means spam. (fn ENTRY) (defalias 'spam-stat-compute-score #[257 "\302\211\303H\262_\304\211\305H\262!\\\306W\203 \307\207\303U\203\"