(gnus-bbdb/split-mail-1): Fix bug for last change.
authorkeiichi <keiichi>
Thu, 9 Dec 1999 09:39:56 +0000 (09:39 +0000)
committerkeiichi <keiichi>
Thu, 9 Dec 1999 09:39:56 +0000 (09:39 +0000)
lisp/gnus-bbdb.el

index 3b254dd..6aa5bf5 100644 (file)
@@ -206,8 +206,10 @@ BBDB-FEILD values is returned.  Otherwise, GROUP is returned."
        (throw 'done (when rest (cons '& rest))))
        (t
        (while records
-         (when (and (setq prop (bbdb-record-getprop (car records) bbdb-field))
-                    (string-match regexp prop))
+         (when (or (null bbdb-field) 
+                   (and (setq prop (bbdb-record-getprop (car records)
+                                                        bbdb-field))
+                        (string-match regexp prop)))
            (throw 'done (or group prop)))
          (setq records (cdr records))))))))