(spam-bogofilter-score): rewrote function again
authorTeodor Zlatanov <tzz@lifelogs.com>
Thu, 16 Jan 2003 00:31:52 +0000 (00:31 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Thu, 16 Jan 2003 00:31:52 +0000 (00:31 +0000)
lisp/spam.el

index c4d34b2..44e033e 100644 (file)
@@ -780,8 +780,9 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
 (defun spam-bogofilter-score ()
   "Get the Bogofilter spamicity score"
   (interactive)
-  (or (spam-check-bogofilter t)
-      0))
+  (let ((score (spam-check-bogofilter t)))
+    (message "Spamicity score %s" score)
+    (or score "0")))
 
 (defun spam-check-bogofilter (&optional score)
   "Check the Bogofilter backend for the classification of this message"