2004-01-20 Teodor Zlatanov <tzz@lifelogs.com>
- From Hubert Chan <hubert@uhoreg.ca>.
+
+ * spam.el (gnus-summary-mode-map): make spam-generic-score the
+ default scoring function
+ (spam-generic-score): calls spam-spamassassin-score if
+ spam-use-spamassassin or spam-use-spamassassin-headers is on;
+ spam-bogofilter-score otherwise.
+
+ From Hubert Chan <hubert@uhoreg.ca>:
* spam.el (spam-use-spamassassin, spam-use-spamassassin-headers)
(spam-install-hooks, spam-spamassassin, spam-spamassassin-path)
;;; Key bindings for spam control.
(gnus-define-keys gnus-summary-mode-map
- "St" spam-bogofilter-score
+ "St" spam-generic-score
"Sx" gnus-summary-mark-as-spam
- "Mst" spam-bogofilter-score
+ "Mst" spam-generic-score
"Msx" gnus-summary-mark-as-spam
"\M-d" gnus-summary-mark-as-spam)
(gnus-summary-remove-process-mark article)
(spam-report-gmane article)))
+(defun spam-generic-score ()
+ (interactive)
+ "Invoke whatever scoring method we can."
+ (if (or
+ spam-use-spamassassin
+ spam-use-spamassassin-headers)
+ (spam-spamassassin-score)
+ (spam-bogofilter-score)))
+
;;; Summary entry and exit processing.
(defun spam-summary-prepare ()