Function: spam-summary-score
spam-summary-score is a byte-compiled function defined in spam.el.gz.
Signature
(spam-summary-score HEADERS &optional SPECIFIC-HEADER)
Documentation
Score an article for the summary buffer, as fast as possible.
With SPECIFIC-HEADER, returns only that header's score. Will not return a nil score.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam.el.gz
(defun spam-summary-score (headers &optional specific-header)
"Score an article for the summary buffer, as fast as possible.
With SPECIFIC-HEADER, returns only that header's score.
Will not return a nil score."
(let (score)
(cl-dolist (header
(if specific-header
(list specific-header)
(spam-necessary-extra-headers)))
(setq score
(spam-extra-header-to-number header headers))
(when score
(cl-return)))
(or score 0)))