+2004-02-12 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elsp-sa.el (elmo-spam-register-spam-buffer): Don't specify '--forget'.
+ (elmo-spam-register-good-buffer): Ditto.
+ (elmo-spam-spamassassin-register-messages): Ditto.
+
+ * elmo-util.el (elmo-string-member-ignore-case): Define with
+ static-cond.
+
2004-02-09 Yuuichi Teranishi <teranisi@gohome.org>
* elmo.el (elmo-folder-type): Undo last change.
(throw 'found t))
(setq slist (cdr slist)))))
-(cond ((fboundp 'member-ignore-case)
+(static-cond ((fboundp 'member-ignore-case)
(defalias 'elmo-string-member-ignore-case 'member-ignore-case))
((fboundp 'compare-strings)
(defun elmo-string-member-ignore-case (elt list)
buffer &optional restore)
(with-current-buffer buffer
(eq 0 (apply 'elmo-spamassassin-call 'learn
- (list (when restore "--forget") "--spam")))))
+ (list "--spam")))))
(luna-define-method elmo-spam-register-good-buffer ((processor elsp-sa)
buffer &optional restore)
(with-current-buffer buffer
(eq 0 (apply 'elmo-spamassassin-call 'learn
- (list (when restore "--forget") "--ham")))))
+ (list "--ham")))))
(defsubst elmo-spam-spamassassin-register-messages (folder
numbers
(apply 'elmo-spamassassin-call 'learn
(delq nil
(list "--mbox"
- (when restore "--forget")
(if spam "--spam" "--ham"))))
(elmo-progress-notify 'elmo-spam-register count)
(erase-buffer)))))