From: TSUCHIYA Masatoshi <tsuchiya@namazu.org>
Subject: Re: [spam.el] Misleading messages on group exit
Date: Tue, 11 May 2004 06:37:02 +0000 [thread overview]
Message-ID: <877jvjjwq9.fsf@namazu.org> (raw)
In-Reply-To: <v9ad0lzrjw.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Thu, 06 May 2004 14:08:35 +0200")
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
>> On Thu, 06 May 2004 14:08:35 +0200
>> 4.uce.03.r.s@nurfuerspam.de (Reiner Steib) said as follows:
>when I quit the summary buffer in a ham group, I get the message
>"Marking spam as expired without moving it" although I marked an
>article as spam that should have been moved. In fact, the article
>was moved, i.e. the message is misleading or wrong.
I think that this message is misleading, too. Therefore, I'd like to
propose the attached change that makes spam.el quiet slightly.
Any comments?
--
TSUCHIYA Masatoshi
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 2421 bytes --]
--- spam.el 30 Apr 2004 17:55:59 -0000 7.34
+++ spam.el 11 May 2004 06:31:30 -0000
@@ -861,16 +861,20 @@
(unless (and spam-move-spam-nonspam-groups-only
(spam-group-spam-contents-p gnus-newsgroup-name))
- (gnus-message 6 "Marking spam as expired and moving it to %s"
- (gnus-parameter-spam-process-destination
- gnus-newsgroup-name))
- (spam-mark-spam-as-expired-and-move-routine
- (gnus-parameter-spam-process-destination gnus-newsgroup-name)))
+ (let ((num
+ (spam-mark-spam-as-expired-and-move-routine
+ (gnus-parameter-spam-process-destination gnus-newsgroup-name))))
+ (when (> num 0)
+ (gnus-message 6 "Marking %d spams as expired and moving it to %s"
+ num (gnus-parameter-spam-process-destination
+ gnus-newsgroup-name)))))
;; 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)
+ (let ((num (spam-mark-spam-as-expired-and-move-routine nil)))
+ (when (> num 0)
+ (gnus-message 6 "Marking %d spams as expired without moving it"
+ num)))
(when (or (spam-group-ham-contents-p gnus-newsgroup-name)
(and (spam-group-spam-contents-p gnus-newsgroup-name)
@@ -964,7 +968,8 @@
(let ((gnus-novice-user nil)) ; don't ask me if I'm sure
(gnus-summary-delete-article nil))))
- (gnus-summary-yank-process-mark))))
+ (gnus-summary-yank-process-mark)
+ (length tomove))))
(defun spam-ham-copy-or-move-routine (copy groups)
(gnus-summary-kill-process-mark)
@@ -1406,12 +1411,13 @@
gnus-newsgroup-articles
classification)))
;; process them
- (gnus-message 5 "%s %d %s articles as %s using backend %s"
- (if unregister "Unregistering" "Registering")
- (length articles)
- (if specific-articles "specific" "")
- (symbol-name classification)
- (symbol-name check))
+ (when articles
+ (gnus-message 5 "%s %d%s articles as %s using backend %s"
+ (if unregister "Unregistering" "Registering")
+ (length articles)
+ (if specific-articles " specific" "")
+ (symbol-name classification)
+ (symbol-name check)))
(funcall run-function articles)
;; now log all the registrations (or undo them, depending on unregister)
(dolist (article articles)
next prev parent reply other threads:[~2004-05-11 6:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-06 12:08 Reiner Steib
2004-05-11 6:37 ` TSUCHIYA Masatoshi [this message]
2004-05-12 5:09 ` TSUCHIYA Masatoshi
2004-05-14 19:23 ` Ted Zlatanov
2004-05-16 15:56 ` TSUCHIYA Masatoshi
2004-05-17 14:12 ` Ted Zlatanov
2004-05-20 2:29 ` TSUCHIYA Masatoshi
2004-05-20 14:23 ` Ted Zlatanov
2004-05-20 16:48 ` TSUCHIYA Masatoshi
2004-05-20 17:42 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877jvjjwq9.fsf@namazu.org \
--to=tsuchiya@namazu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).