aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gnus/gnus-nocem.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-nocem.el b/lisp/gnus/gnus-nocem.el
index 597228d5f6f..c67faaf52b7 100644
--- a/lisp/gnus/gnus-nocem.el
+++ b/lisp/gnus/gnus-nocem.el
@@ -1,6 +1,6 @@
1;;; gnus-nocem.el --- NoCeM pseudo-cancellation treatment 1;;; gnus-nocem.el --- NoCeM pseudo-cancellation treatment
2 2
3;; Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. 3;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
4 4
5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 5;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
6;; Keywords: news 6;; Keywords: news
@@ -84,6 +84,12 @@ matches an previously scanned and verified nocem message."
84 :group 'gnus-nocem 84 :group 'gnus-nocem
85 :type 'boolean) 85 :type 'boolean)
86 86
87(defcustom gnus-nocem-check-article-limit nil
88 "*If non-nil, the maximum number of articles to check in any NoCeM group."
89 :group 'gnus-nocem
90 :type '(choice (const :tag "unlimited" nil)
91 (integer 1000)))
92
87;;; Internal variables 93;;; Internal variables
88 94
89(defvar gnus-nocem-active nil) 95(defvar gnus-nocem-active nil)
@@ -174,8 +180,10 @@ matches an previously scanned and verified nocem message."
174 (not (member (mail-header-message-id header) 180 (not (member (mail-header-message-id header)
175 gnus-nocem-seen-message-ids)))) 181 gnus-nocem-seen-message-ids))))
176 (push header check-headers))) 182 (push header check-headers)))
177 (let ((i 0) 183 (let* ((i 0)
178 (len (length check-headers))) 184 (check-headers
185 (last check-headers gnus-nocem-check-article-limit))
186 (len (length check-headers)))
179 (dolist (h check-headers) 187 (dolist (h check-headers)
180 (gnus-message 188 (gnus-message
181 7 "Checking article %d in %s for NoCeM (%d of %d)..." 189 7 "Checking article %d in %s for NoCeM (%d of %d)..."