comparison lisp/mail/rmail-spam-filter.el @ 58182:875255640d7a

(rmail-spam-filter): Only check white list if `message-sender' is non-nil.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 12 Nov 2004 17:02:29 +0000
parents d69a48d76be3
children 18a818a2ee7c b637c617432f
comparison
equal deleted inserted replaced
58181:6f6fadd54910 58182:875255640d7a
300 maybe-spam t 300 maybe-spam t
301 this-is-a-spam-email t)) 301 this-is-a-spam-email t))
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))
315 316
316 ;; maybe-spam is in first, this-is-a-spam-email in rest, this 317 ;; maybe-spam is in first, this-is-a-spam-email in rest, this