(spam-summary-prepare-exit): only produce "marking spam
authorTeodor Zlatanov <tzz@lifelogs.com>
Fri, 14 May 2004 19:41:07 +0000 (19:41 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Fri, 14 May 2004 19:41:07 +0000 (19:41 +0000)
as expired without moving it" message when there are spam
messages left

lisp/ChangeLog
lisp/spam.el

index 05fdcf4..a6f9b6a 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-14  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * spam.el (spam-summary-prepare-exit): only produce "marking spam
+       as expired without moving it" message when there are spam
+       messages left
+
 2004-05-14  Kai Grossjohann  <kgrossjo@eu.uu.net>
 
        * nntp.el (nntp-request-set-mark, nntp-request-update-info): Call
index f3d0c11..7577a71 100644 (file)
@@ -869,8 +869,11 @@ Will not return a nil score."
 
     ;; now we redo spam-mark-spam-as-expired-and-move-routine to only
     ;; expire spam, in case the above did not expire them
-    (gnus-message 6 "Marking spam as expired without moving it")
-    (spam-mark-spam-as-expired-and-move-routine nil)
+    (when (< 0 (spam-list-articles
+               gnus-newsgroup-articles
+               'spam))
+      (gnus-message 6 "Marking spam as expired without moving it")
+      (spam-mark-spam-as-expired-and-move-routine nil))
 
     (when (or (spam-group-ham-contents-p gnus-newsgroup-name)
              (and (spam-group-spam-contents-p gnus-newsgroup-name)