Function: spam-filelist-build-cache
spam-filelist-build-cache is a byte-compiled function defined in
spam.el.gz.
Signature
(spam-filelist-build-cache TYPE)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam.el.gz
(defun spam-filelist-build-cache (type)
(let ((cache (if (eq type 'spam-use-blacklist)
spam-blacklist-cache
spam-whitelist-cache))
parsed-cache)
(unless (gethash type spam-caches)
(while cache
(let ((address (pop cache)))
(unless (zerop (length address)) ; 0 for a nil address too
(setq address (regexp-quote address))
;; fix regexp-quote's treatment of user-intended regexes
(while (string-match "\\\\\\*" address)
(setq address (replace-match ".*" t t address))))
(push address parsed-cache)))
(puthash type parsed-cache spam-caches))))