Function: spam-stat-buffer-change-to-spam
spam-stat-buffer-change-to-spam is a byte-compiled function defined in
spam-stat.el.gz.
Signature
(spam-stat-buffer-change-to-spam)
Documentation
Consider current buffer no longer normal mail but spam.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam-stat.el.gz
(defun spam-stat-buffer-change-to-spam ()
"Consider current buffer no longer normal mail but spam."
(setq spam-stat-nbad (1+ spam-stat-nbad)
spam-stat-ngood (1- spam-stat-ngood))
(maphash
(lambda (word count)
(let ((entry (gethash word spam-stat)))
(if (not entry)
(gnus-message 8 "This buffer has unknown words in it")
(spam-stat-set-good entry (- (spam-stat-good entry) count))
(spam-stat-set-bad entry (+ (spam-stat-bad entry) count))
(spam-stat-set-score entry (spam-stat-compute-score entry))
(puthash word entry spam-stat))))
(spam-stat-buffer-words))
(setq spam-stat-dirty t))