aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-09-06 18:37:43 +0000
committerGlenn Morris2008-09-06 18:37:43 +0000
commit0a25d0ecda71a260662a3bfbc505685ecebf24c6 (patch)
treeeba184312391634865ace9713c1b111a2e4cf443
parentd61ac83562539dcce2f4ea7568c5dee12c3cf117 (diff)
downloademacs-0a25d0ecda71a260662a3bfbc505685ecebf24c6.tar.gz
emacs-0a25d0ecda71a260662a3bfbc505685ecebf24c6.zip
(pmail-use-spam-filter): Remove un-needed variable declaration.
Doc fix for actual definition. (pmail-get-new-mail): Call rmail-spam-filter rather than non-existent pmail-spam-filter.
-rw-r--r--lisp/mail/pmail.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el
index f09b2acae0a..ea287927801 100644
--- a/lisp/mail/pmail.el
+++ b/lisp/mail/pmail.el
@@ -53,7 +53,6 @@
53(defvar mail-abbrev-syntax-table) 53(defvar mail-abbrev-syntax-table)
54(defvar mail-abbrevs) 54(defvar mail-abbrevs)
55(defvar messages-head) 55(defvar messages-head)
56(defvar pmail-use-spam-filter)
57(defvar rsf-beep) 56(defvar rsf-beep)
58(defvar rsf-sleep-after-message) 57(defvar rsf-sleep-after-message)
59(defvar total-messages) 58(defvar total-messages)
@@ -799,8 +798,11 @@ The first parenthesized expression should match the MIME-charset name.")
799 798
800(defvar pmail-enable-multibyte nil) 799(defvar pmail-enable-multibyte nil)
801 800
802;; Avoid errors. 801;; XXX rmail-spam-filter hasn't been tested at all with the mbox
803(defvar pmail-use-spam-filter nil) 802;; branch. --enberg
803(defvar pmail-use-spam-filter nil
804 "*Non-nil to activate the rmail spam filter with pmail.
805WARNING - this has not been tested at all with pmail.")
804 806
805(defun pmail-require-mime-maybe () 807(defun pmail-require-mime-maybe ()
806 "Require `pmail-mime-feature' if that is non-nil. 808 "Require `pmail-mime-feature' if that is non-nil.
@@ -1445,8 +1447,8 @@ original copy."
1445 1447
1446;;;; *** Pmail input *** 1448;;;; *** Pmail input ***
1447 1449
1448;;;(declare-function pmail-spam-filter "pmail-spam-filter" (msg)) 1450(declare-function pmail-summary-goto-msg "pmailsum"
1449(declare-function pmail-summary-goto-msg "pmailsum" (&optional n nowarn skip-pmail)) 1451 (&optional n nowarn skip-pmail))
1450(declare-function pmail-summary-mark-undeleted "pmailsum" (n)) 1452(declare-function pmail-summary-mark-undeleted "pmailsum" (n))
1451(declare-function pmail-summary-mark-deleted "pmailsum" (&optional n undel)) 1453(declare-function pmail-summary-mark-deleted "pmailsum" (&optional n undel))
1452(declare-function rfc822-addresses "rfc822" (header-text)) 1454(declare-function rfc822-addresses "rfc822" (header-text))
@@ -1566,12 +1568,10 @@ updated file. It returns t if it got any new messages."
1566 ;; Process the new messages for spam using the integrated 1568 ;; Process the new messages for spam using the integrated
1567 ;; spam filter. The spam filter can mark messages for 1569 ;; spam filter. The spam filter can mark messages for
1568 ;; deletion and can output a message. 1570 ;; deletion and can output a message.
1569 ;; XXX pmail-spam-filter hasn't been tested at all with
1570 ;; the mbox branch. --enberg
1571 (setq current-message (pmail-first-unseen-message)) 1571 (setq current-message (pmail-first-unseen-message))
1572 (when pmail-use-spam-filter 1572 (when pmail-use-spam-filter
1573 (while (<= current-message pmail-total-messages) 1573 (while (<= current-message pmail-total-messages)
1574 (pmail-spam-filter current-message) 1574 (rmail-spam-filter current-message)
1575 (setq current-message (1+ current-message)))) 1575 (setq current-message (1+ current-message))))
1576 ;; Make the first unseen message the current message and 1576 ;; Make the first unseen message the current message and
1577 ;; update the summary buffer, if one exists. 1577 ;; update the summary buffer, if one exists.