Function: spam-parse-list
spam-parse-list is a byte-compiled function defined in spam.el.gz.
Signature
(spam-parse-list FILE)
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/spam.el.gz
(defun spam-parse-list (file)
(when (file-readable-p file)
(let (contents address)
(with-temp-buffer
(insert-file-contents file)
(while (not (eobp))
(setq address (buffer-substring (point) (line-end-position)))
(forward-line 1)
;; insert the e-mail address if detected, otherwise the raw data
(unless (zerop (length address))
(let ((pure-address
(nth 1 (gnus-extract-address-components address))))
(push (or pure-address address) contents)))))
(nreverse contents))))