Function: spam-log-processing-to-registry

spam-log-processing-to-registry is a byte-compiled function defined in spam.el.gz.

Signature

(spam-log-processing-to-registry ID TYPE CLASSIFICATION BACKEND GROUP)

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/spam.el.gz
;; log a ham- or spam-processor invocation to the registry
(defun spam-log-processing-to-registry (id type classification backend group)
  (when spam-log-to-registry
    (if (and (stringp id)
             (stringp group)
             (spam-process-type-valid-p type)
             (spam-classification-valid-p classification)
             (spam-backend-valid-p backend))
        (let ((cell-list (gnus-registry-get-id-key id type))
              (cell (list classification backend group)))
          (push cell cell-list)
          (gnus-registry-set-id-key id type cell-list))

      (gnus-error
       7
       (format
        "%s call with bad ID, type, classification, spam-backend, or group"
        "spam-log-processing-to-registry")))))