(spam-process-ham-in-nonham-groups): new variable
authorTeodor Zlatanov <tzz@lifelogs.com>
Wed, 23 Jul 2003 20:21:58 +0000 (20:21 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Wed, 23 Jul 2003 20:21:58 +0000 (20:21 +0000)
(spam-summary-prepare-exit): use spam-process-ham-in-nonham-groups

lisp/ChangeLog
lisp/spam.el

index 07fac41..e998d3a 100644 (file)
@@ -1,3 +1,8 @@
+2003-07-23  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * spam.el (spam-process-ham-in-nonham-groups): new variable
+       (spam-summary-prepare-exit): use spam-process-ham-in-nonham-groups
+
 2003-07-23  Jesper Harder  <harder@ifa.au.dk>
 
        * rfc2047.el (rfc2047-header-encoding-alist): Add Mail-Followup-To
index ab12dac..8cdc403 100644 (file)
@@ -80,6 +80,11 @@ spam groups."
   :type 'boolean
   :group 'spam)
 
+(defcustom spam-process-ham-in-nonham-groups nil
+  "Whether ham should be processed in non-ham groups."
+  :type 'boolean
+  :group 'spam)
+
 (defcustom spam-mark-only-unseen-as-spam t
   "Whether only unseen articles should be marked as spam in spam
 groups.  When nil, all unread articles in a spam group are marked as
@@ -212,6 +217,7 @@ the spam-use-* variables is set."
   :type 'string
   :group 'spam)
 
+;;; TODO: deprecate this variable, it's confusing since it's a list of strings, not regular expressions
 (defcustom spam-junk-mailgroups (cons spam-split-group '("mail.junk" "poste.pourriel"))
   "Mailgroups with spam contents.
 All unmarked article in such group receive the spam mark on group entry."
@@ -478,7 +484,8 @@ spamoracle database."
     (gnus-message 5 "Marking spam as expired without moving it")
     (spam-mark-spam-as-expired-and-move-routine nil)
 
-    (when (spam-group-ham-contents-p gnus-newsgroup-name)
+    (when (or (spam-group-ham-contents-p gnus-newsgroup-name)
+             spam-process-ham-in-nonham-groups)
       (when (spam-group-ham-processor-whitelist-p gnus-newsgroup-name)
        (gnus-message 5 "Registering ham with the whitelist")
        (spam-whitelist-register-routine))