+2004-02-17 Eli Zaretskii <eliz@elta.co.il>
+
+ * mail/rmail.el (rmail-get-new-mail): Don't reference
+ rmail-use-spam-filter if rmail-spam-filter is not loaded.
+
2004-02-16 Luc Teirlinck <teirllm@auburn.edu>
* autorevert.el (auto-revert-buffer-p): Only revert dired buffers
(if (or file-name rmail-inbox-list)
(message "(No new mail has arrived)")))
;; check new messages to see if any of them is spam:
- (if rmail-use-spam-filter
+ (if (and (featurep 'rmail-spam-filter)
+ rmail-use-spam-filter)
(let*
((old-messages (- rmail-total-messages new-messages))
(rsf-scanned-message-number (1+ old-messages))
(message "%d new message%s read%s"
new-messages (if (= 1 new-messages) "" "s")
;; print out a message on number of spam messages found:
- (if (and rmail-use-spam-filter (> rsf-number-of-spam 0))
+ (if (and (featurep 'rmail-spam-filter)
+ rmail-use-spam-filter
+ (> rsf-number-of-spam 0))
(if (= 1 new-messages)
", and found to be a spam message"
(if (> rsf-number-of-spam 1)
rsf-number-of-spam)
", one of which found to be a spam message"))
""))
- (if (and rmail-use-spam-filter (> rsf-number-of-spam 0))
+ (if (and (featurep 'rmail-spam-filter)
+ rmail-use-spam-filter
+ (> rsf-number-of-spam 0))
(progn (if rmail-spam-filter-beep (beep t))
(sleep-for rmail-spam-sleep-after-message)))