aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2009-02-18 08:02:56 +0000
committerGlenn Morris2009-02-18 08:02:56 +0000
commit134859bc3cf1f8e771451bc14d846d4acce59fae (patch)
treef4a5abbe573216ffc69d89e2841b3147699d58db
parentc925297d14645dfe9de89d9fd38da08b23b59734 (diff)
downloademacs-134859bc3cf1f8e771451bc14d846d4acce59fae.tar.gz
emacs-134859bc3cf1f8e771451bc14d846d4acce59fae.zip
(rmail-get-new-mail-filter-spam): Show a message rather than the raw
mbox while prompting.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/mail/rmail.el17
2 files changed, 15 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7b1cdb23e54..06cadfecfae 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-02-18 Glenn Morris <rgm@gnu.org>
2
3 * mail/rmail.el (rmail-get-new-mail-filter-spam):
4 * mail/rmail-spam-filter.el (rmail-spam-filter):
5 Show a message rather than the raw mbox while prompting.
6
12009-02-18 Martin Rudalics <rudalics@gmx.at> 72009-02-18 Martin Rudalics <rudalics@gmx.at>
2 8
3 * progmodes/flymake.el (flymake): Add defgroup. (Bug#2356) 9 * progmodes/flymake.el (flymake): Add defgroup. (Bug#2356)
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index a3d603197c1..3e41ad44201 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1710,8 +1710,8 @@ It returns t if it got any new messages."
1710 (message "%d new message%s read%s" new-messages suffix blurb) 1710 (message "%d new message%s read%s" new-messages suffix blurb)
1711 (unless (string-equal blurb "") ; there was spam 1711 (unless (string-equal blurb "") ; there was spam
1712 (if rsf-beep (beep t)) 1712 (if rsf-beep (beep t))
1713 ;; FIXME This doesn't seem a very good feature, e.g. it delays the 1713 ;; The use of rmail-show-message in rmail-get-new-mail-filter-spam
1714 ;; appearance of the summary, and leaves the raw buffer visible. 1714 ;; also prevents the raw mbox buffer from showing at this point.
1715 (sleep-for rsf-sleep-after-message)) 1715 (sleep-for rsf-sleep-after-message))
1716 ;; Establish the return value. 1716 ;; Establish the return value.
1717 (setq result (> new-messages 0)) 1717 (setq result (> new-messages 0))
@@ -1726,12 +1726,13 @@ It returns t if it got any new messages."
1726 (or (rmail-spam-filter nscan) 1726 (or (rmail-spam-filter nscan)
1727 (setq nspam (1+ nspam))) 1727 (setq nspam (1+ nspam)))
1728 (setq nscan (1+ nscan))) 1728 (setq nscan (1+ nscan)))
1729 ;; FIXME the expunge prompt leaves the raw mbox buffer showing, 1729 (when (> nspam 0)
1730 ;; but it's not straightforward to show a message at this point 1730 ;; Otherwise the expunge prompt leaves the raw mbox buffer showing.
1731 ;; without messing up the rest of get-new-mail. 1731 (rmail-show-message (rmail-first-unseen-message) 1)
1732 (and (> nspam 0) 1732 (if (rmail-expunge-confirmed) (rmail-only-expunge t))
1733 (rmail-expunge-confirmed) 1733 ;; Swap back, else get-new-mail-1 gets confused.
1734 (rmail-only-expunge t)) 1734 (rmail-swap-buffers-maybe)
1735 (widen))
1735 ;; Return a message based on the number of spam messages found. 1736 ;; Return a message based on the number of spam messages found.
1736 (cond 1737 (cond
1737 ((zerop nspam) "") 1738 ((zerop nspam) "")