+2003-06-25 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * spam.el (spam-parse-list): prevent empty ("") strings
+
2003-06-24 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el (spam-parse-list): use gnus-extract-address-components
(setq address (buffer-substring (point) (spam-point-at-eol)))
(forward-line 1)
;; insert the e-mail address if detected, otherwise the raw data
- (let ((pure-address (cadr (gnus-extract-address-components address))))
- (push (or pure-address address) contents))))
+ (unless (zerop (length address))
+ (let ((pure-address (cadr (gnus-extract-address-components address))))
+ (push (or pure-address address) contents)))))
(nreverse contents))))
(defun spam-from-listed-p (cache)