(spam-check-ifile): fixed the spam-ifile-all-categories
authorTeodor Zlatanov <tzz@lifelogs.com>
Wed, 8 Jan 2003 04:54:28 +0000 (04:54 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Wed, 8 Jan 2003 04:54:28 +0000 (04:54 +0000)
logic, finally

lisp/ChangeLog
lisp/spam.el

index b40b5f3..66dab7e 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-07  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * spam.el (spam-check-ifile): fixed the spma-ifile-all-categories
+       logic, finally
+
 2003-01-08  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-spec.el (gnus-parse-format): %C is a complex format.
index 475f579..e0a463b 100644 (file)
@@ -522,10 +522,11 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
        (if (not (eobp))
            (setq category (buffer-substring (point) (spam-point-at-eol))))
        (when (not (zerop (length category))) ; we need a category here
-         (unless spam-ifile-all-categories
+         (if spam-ifile-all-categories
+             (setq return category)
+           ;; else, if spam-ifile-all-categories is not set...
            (when (string-equal spam-ifile-spam-category category)
-             (setq return spam-split-group))
-           (setq return category)))))  ; always accept the ifile category
+             (setq return spam-split-group))))))       ; always accept the ifile category
     return))
 
 (defun spam-ifile-register-with-ifile (article-string category)