]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-spam-filter): Only check white list if `message-sender' is non-nil.
authorEli Zaretskii <eliz@gnu.org>
Fri, 12 Nov 2004 17:03:56 +0000 (17:03 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 12 Nov 2004 17:03:56 +0000 (17:03 +0000)
lisp/ChangeLog
lisp/mail/rmail-spam-filter.el

index e867fa3de48ff3d5f945ed53399cec2b329804fa..d37206b261c97c9eb09c3a57723d8a2b7c4e361b 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-12  Diane Murray  <dsm@muenster.de>  (tiny change)
+
+       * mail/rmail-spam-filter.el (rmail-spam-filter): Only check white
+       list if `message-sender' is non-nil.
+
 2004-11-12  Kevin Rodgers  <ihs_4664@yahoo.com>  (tiny change)
 
        * desktop.el (desktop-create-buffer, desktop-save): Avoid some
index 43177b7c99b1c7b450ddf511ae94e176ba4d0a70..c7fc8a0da03e543e1acd21e7f903f8c9307bab5a 100644 (file)
@@ -302,13 +302,14 @@ it from rmail file.  Called for each new message retrieved by
 
         ;; Check white list, and likewise cause while loop
         ;;  bypass.
-        (if (let ((white-list rsf-white-list)
-                  (found nil))
-              (while (and (not found) white-list)
-                (if (string-match (car white-list) message-sender)
-                    (setq found t)
-                  (setq white-list (cdr white-list))))
-              found)
+        (if (and message-sender
+                 (let ((white-list rsf-white-list)
+                       (found nil))
+                   (while (and (not found) white-list)
+                     (if (string-match (car white-list) message-sender)
+                         (setq found t)
+                       (setq white-list (cdr white-list))))
+                   found))
             (setq exit-while-loop t
                   maybe-spam nil
                   this-is-a-spam-email nil))