aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mail
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmail-spam-filter.el15
-rw-r--r--lisp/mail/rmail.el4
2 files changed, 10 insertions, 9 deletions
diff --git a/lisp/mail/rmail-spam-filter.el b/lisp/mail/rmail-spam-filter.el
index 43177b7c99b..c7fc8a0da03 100644
--- a/lisp/mail/rmail-spam-filter.el
+++ b/lisp/mail/rmail-spam-filter.el
@@ -302,13 +302,14 @@ it from rmail file. Called for each new message retrieved by
302 302
303 ;; Check white list, and likewise cause while loop 303 ;; Check white list, and likewise cause while loop
304 ;; bypass. 304 ;; bypass.
305 (if (let ((white-list rsf-white-list) 305 (if (and message-sender
306 (found nil)) 306 (let ((white-list rsf-white-list)
307 (while (and (not found) white-list) 307 (found nil))
308 (if (string-match (car white-list) message-sender) 308 (while (and (not found) white-list)
309 (setq found t) 309 (if (string-match (car white-list) message-sender)
310 (setq white-list (cdr white-list)))) 310 (setq found t)
311 found) 311 (setq white-list (cdr white-list))))
312 found))
312 (setq exit-while-loop t 313 (setq exit-while-loop t
313 maybe-spam nil 314 maybe-spam nil
314 this-is-a-spam-email nil)) 315 this-is-a-spam-email nil))
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index f8e31dfda04..a7524cc8246 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1504,8 +1504,8 @@ It returns t if it got any new messages."
1504 (if (and (featurep 'rmail-spam-filter) 1504 (if (and (featurep 'rmail-spam-filter)
1505 rmail-use-spam-filter 1505 rmail-use-spam-filter
1506 (> rsf-number-of-spam 0)) 1506 (> rsf-number-of-spam 0))
1507 (progn (if rmail-spam-filter-beep (beep t)) 1507 (progn (if rsf-beep (beep t))
1508 (sleep-for rmail-spam-sleep-after-message))) 1508 (sleep-for rsf-sleep-after-message)))
1509 1509
1510 ;; Move to the first new message 1510 ;; Move to the first new message
1511 ;; unless we have other unseen messages before it. 1511 ;; unless we have other unseen messages before it.