Synch to Gnus 200306251534.
authoryamaoka <yamaoka>
Wed, 25 Jun 2003 22:10:21 +0000 (22:10 +0000)
committeryamaoka <yamaoka>
Wed, 25 Jun 2003 22:10:21 +0000 (22:10 +0000)
lisp/ChangeLog
lisp/spam.el

index a3a1d86..ca5d2e9 100644 (file)
@@ -1,3 +1,7 @@
+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
index abad927..b036a3b 100644 (file)
@@ -996,8 +996,9 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
          (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)