Function: spam-check-spamassassin-headers
spam-check-spamassassin-headers is a byte-compiled function defined in
spam.el.gz.
Signature
(spam-check-spamassassin-headers &optional SCORE)
Documentation
Check the SpamAssassin headers for the classification of this message.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam.el.gz
;;}}}
;;{{{ SpamAssassin
;;; based mostly on the bogofilter code
(defun spam-check-spamassassin-headers (&optional score)
"Check the SpamAssassin headers for the classification of this message."
(if score ; scoring mode
(let ((header (message-fetch-field spam-spamassassin-spam-status-header)))
(when header
(if (string-match spam-spamassassin-score-regexp header)
(match-string 1 header)
"0")))
;; spam detection mode
(let ((header (message-fetch-field spam-spamassassin-spam-flag-header)))
(when header ; return nil when no header
(when (string-match spam-spamassassin-positive-spam-flag-header
header)
spam-split-group)))))