`if-exists'.
* wl-spam.el (wl-spam-save-status): Dose not initialize processor
if no need.
+2003-11-27 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-spam.el (elmo-spam-processor): Added 3rd argument
+ `if-exists'.
+
2003-11-23 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* elmo-multi.el (elmo-folder-newsgroups): Simplify.
(defvar elmo-spam-processor-internal nil)
-(defun elmo-spam-processor ()
+(defun elmo-spam-processor (&optional if-exists)
(or elmo-spam-processor-internal
- (let* ((scheme (or elmo-spam-scheme 'generic))
- (class (intern (format "elsp-%s" scheme))))
- (require class)
- (setq elmo-spam-processor-internal
- (luna-make-entity class)))))
+ (unless if-exists
+ (let* ((scheme (or elmo-spam-scheme 'generic))
+ (class (intern (format "elsp-%s" scheme))))
+ (require class)
+ (setq elmo-spam-processor-internal
+ (luna-make-entity class))))))
(require 'product)
(product-provide (provide 'elmo-spam) (require 'elmo-version))
+2003-11-27 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * wl-spam.el (wl-spam-save-status): Dose not initialize processor
+ if no need.
+
2003-11-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* wl-spam.el (wl-spam-auto-check-folder-regexp-list): Changed
(defun wl-spam-save-status (&optional force)
(interactive "P")
- (let ((processor (elmo-spam-processor)))
- (when (or force (elmo-spam-modified-p processor))
+ (let ((processor (elmo-spam-processor (not force))))
+ (when (or force
+ (and processor (elmo-spam-modified-p processor)))
(elmo-spam-save-status processor))))
;; insinuate into summary mode