load nnimap.el when compiling
authorTeodor Zlatanov <tzz@lifelogs.com>
Fri, 7 Mar 2003 20:05:19 +0000 (20:05 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Fri, 7 Mar 2003 20:05:19 +0000 (20:05 +0000)
(spam-setup-widening): use
nnimap-split-download-body-default instead of
nnimap-split-download-body which is a user-customizable variable

lisp/ChangeLog
lisp/spam.el

index b8eb8ad..35d8dbf 100644 (file)
@@ -1,3 +1,11 @@
+2003-03-07  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * spam.el: load nnimap.el when compiling
+       (spam-setup-widening): use
+       nnimap-split-download-body-default instead of
+       nnimap-split-download-body which is a user-customizable variable
+        
+
 2003-03-07  Simon Josefsson  <jas@extundo.com>
 
        * nnimap.el (nnimap-split-download-body-default): New, holds
        * mm-decode.el (mm-path-name-rewrite-functions): Doc fix: don't
        use "path name".
 
-2003-02-21  Teodor Zlatanov  <tzz@bwh.harvard.edu>
+2003-02-21  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-sum.el (gnus-summary-move-article)
        (gnus-summary-expire-articles): send data header for article, not
 
        * gnus-util.el (gnus-faces-at): Simplify.
 
-2003-02-13  Teodor Zlatanov  <tzz@bwh.harvard.edu>
+2003-02-13  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * spam.el (spam-ham-move-routine) 
        (spam-mark-spam-as-expired-and-move-routine): made the article
index fc9c714..9e28e9d 100644 (file)
@@ -40,6 +40,9 @@
 (require 'gnus)        ; for the definitions of group content classification and spam processors
 (require 'message)                     ;for the message-fetch-field functions
 
+;; for nnimap-split-download-body-default
+(eval-when-compile (require 'nnimap))
+
 ;; autoload executable-find
 (eval-and-compile
   ;; executable-find is not autoloaded in Emacs 20
@@ -612,7 +615,7 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
 (defun spam-setup-widening ()
   (dolist (check spam-list-of-statistical-checks)
     (when (symbol-value check)
-      (setq nnimap-split-download-body t))))
+      (setq nnimap-split-download-body-default t))))
 
 (add-hook 'gnus-get-new-news-hook 'spam-setup-widening)