Function: spam-stat-reduce-size
spam-stat-reduce-size is an interactive and byte-compiled function
defined in spam-stat.el.gz.
Signature
(spam-stat-reduce-size &optional COUNT)
Documentation
Reduce the size of spam-stat.
This removes all words that occur less than COUNT from the dictionary. COUNT defaults to 5
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam-stat.el.gz
;; Shrinking the dictionary
(defun spam-stat-reduce-size (&optional count)
"Reduce the size of `spam-stat'.
This removes all words that occur less than COUNT from the dictionary.
COUNT defaults to 5"
(interactive)
(setq count (or count 5))
(maphash (lambda (key entry)
(when (< (+ (spam-stat-good entry)
(spam-stat-bad entry))
count)
(remhash key spam-stat)))
spam-stat)
(setq spam-stat-dirty t))