Function: spam-article-sort-by-spam-status

spam-article-sort-by-spam-status is a byte-compiled function defined in spam.el.gz.

Signature

(spam-article-sort-by-spam-status H1 H2)

Documentation

Sort articles by score.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/spam.el.gz
(defun spam-article-sort-by-spam-status (h1 h2)
  "Sort articles by score."
  (let (result)
    (cl-dolist (header (spam-necessary-extra-headers))
      (let ((s1 (spam-summary-score h1 header))
            (s2 (spam-summary-score h2 header)))
      (unless (= s1 s2)
        (setq result (< s1 s2))
        (cl-return))))
    result))