* samples/*/dot.wl: Update spam settings.
authorhmurata <hmurata>
Sat, 22 Nov 2003 04:43:52 +0000 (04:43 +0000)
committerhmurata <hmurata>
Sat, 22 Nov 2003 04:43:52 +0000 (04:43 +0000)
* wl/wl-spam.el (wl-spam-auto-check-folder-regexp-list): Changed
default value to nil.
(wl-spam-setup): Added `wl-summary-auto-check-spam' to
`wl-summary-prepare-hook'; Replace refile action to
`wl-summary-exec-action-refile-with-register'.

samples/en/dot.wl
samples/ja/dot.wl
wl/ChangeLog
wl/wl-spam.el

index d108934..73fa9c7 100644 (file)
 
 ;(require 'wl-spam)
 
+;; In moving to summary, judge whether a message is a spam.
+;(setq wl-spam-auto-check-folder-regexp-list '("\\+inbox"))
+
 ;; Judge *first* whether a message is a spam
 ;; when `o' (wl-summary-refile) is performed in a summary buffer.
 ;(unless (memq 'wl-refile-guess-by-spam wl-refile-guess-functions)
 ;  (setq wl-refile-guess-functions
-;      (cons #'wl-refile-guess-by-spam 
+;      (cons #'wl-refile-guess-by-spam
 ;            wl-refile-guess-functions)))
 
 ;; Judge *first* whether a message is a spam
 ;; when `C-o' (wl-summary-auto-refile) is performed in a summary buffer.
 ;(unless (memq 'wl-refile-guess-by-spam wl-auto-refile-guess-functions)
 ;  (setq wl-auto-refile-guess-functions
-;      (cons #'wl-refile-guess-by-spam 
+;      (cons #'wl-refile-guess-by-spam
 ;            wl-auto-refile-guess-functions)))
 
 ;; When you want to give priority to refile-rule (same as spamfilter-wl.el
 ;      (append wl-auto-refile-guess-functions
 ;              '(wl-refile-guess-by-spam))))
 
-;; In moving to each summary, judge whether a message is a spam
-;; according to wl-spam-auto-check-folder-regexp-list.
-;(add-hook 'wl-summary-prepared-pre-hook #'wl-summary-auto-check-spam)
-
-;; Make the spam processor learn at the time of execution of refile.
-;; Even if the following setup was carried out, it does not always learn.
-;; See the docstring of wl-spam-undecided-folder-regexp-list and 
-;; wl-spam-ignored-folder-regexp-list in wl-spam.el for details.
-;(let ((actions wl-summary-mark-action-list)
-;      action)
-;  (while actions
-;    (setq action  (car actions)
-;        actions (cdr actions))
-;    (when (eq (wl-summary-action-symbol action) 'refile)
-;      (setcar (nthcdr 4 action) 'wl-summary-exec-action-refile-with-register)
-;      (setq actions nil))))
-
 ;;; dot.wl ends here
index 08e313e..47d4437 100644 (file)
 
 ;(require 'wl-spam)
 
+;; \e$B0\F0$7$?;~$K<+F0$G\e(B spam \e$B$+$I$&$+%A%'%C%/$9$k%U%)%k%@$r@_Dj\e(B
+;(setq wl-spam-auto-check-folder-regexp-list '("\\+inbox"))
+
 ;; \e$B%5%^%j%P%C%U%!$G\e(B `o' (wl-summary-refile) \e$B$7$?;~\e(B, *\e$B:G=i\e(B*\e$B$K\e(B spam \e$B$+$I\e(B
 ;; \e$B$&$+$rH=Dj$9$kMM$K$9$k\e(B
 ;(unless (memq 'wl-refile-guess-by-spam wl-refile-guess-functions)
 ;      (append wl-auto-refile-guess-functions
 ;              '(wl-refile-guess-by-spam))))
 
-;; wl-spam-auto-check-folder-regexp-list \e$B$K9gCW$9$k%U%)%k%@$K0\F0$7$?\e(B
-;; \e$B;~$K\e(B spam \e$B$+$I$&$+%A%'%C%/$9$k\e(B
-;(add-hook 'wl-summary-prepared-pre-hook #'wl-summary-auto-check-spam)
-
-;; refile \e$B$N<B9T;~$K3X=,$5$;$k0Y$N@_Dj\e(B
-;; \e$B0J2<$N@_Dj$r$7$?$+$i$H8@$C$F>o$K3X=,$9$kLu$G$O$"$j$^$;$s\e(B. \e$B>\$7$/$O\e(B,
-;; wl-spam.el \e$B$N\e(B wl-spam-undecided-folder-regexp-list \e$B$H\e(B
-;; wl-spam-ignored-folder-regexp-list \e$B$N\e(B docstring \e$B$r;2>H$7$F2<$5$$\e(B.
-;(let ((actions wl-summary-mark-action-list)
-;      action)
-;  (while actions
-;    (setq action  (car actions)
-;        actions (cdr actions))
-;    (when (eq (wl-summary-action-symbol action) 'refile)
-;      (setcar (nthcdr 4 action) 'wl-summary-exec-action-refile-with-register)
-;      (setq actions nil))))
-
 ;;; dot.wl ends here
index d768c5f..2de3b7f 100644 (file)
@@ -1,5 +1,11 @@
 2003-11-22  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
+       * wl-spam.el (wl-spam-auto-check-folder-regexp-list): Changed
+       default value to nil.
+       (wl-spam-setup): Added `wl-summary-auto-check-spam' to
+       `wl-summary-prepare-hook'; Replace refile action to
+       `wl-summary-exec-action-refile-with-register'.
+
        * Version number is increased to 2.11.22.
 
 2003-11-20  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
index f397b79..a9d810e 100644 (file)
@@ -59,7 +59,7 @@
   :type '(repeat (regexp :tag "Folder Regexp"))
   :group 'wl-spam)
 
-(defcustom wl-spam-auto-check-folder-regexp-list '("[+.]inbox")
+(defcustom wl-spam-auto-check-folder-regexp-list nil
   "*List of Folder regexp which check spam automatically."
   :type '(repeat (regexp :tag "Folder Regexp"))
   :group 'wl-spam)
@@ -324,6 +324,15 @@ See `wl-summary-mark-action-list' for the detail of element."
     wl-spam-folder-name))
 
 (defun wl-spam-setup ()
+  (add-hook 'wl-summary-prepared-hook #'wl-summary-auto-check-spam)
+  (let ((actions wl-summary-mark-action-list)
+       action)
+    (while actions
+      (setq action  (car actions)
+           actions (cdr actions))
+      (when (eq (wl-summary-action-symbol action) 'refile)
+       (setcar (nthcdr 4 action) 'wl-summary-exec-action-refile-with-register)
+       (setq actions nil))))
   (when wl-spam-mark-action-list
     (setq wl-summary-mark-action-list (append
                                       wl-summary-mark-action-list
@@ -336,8 +345,10 @@ See `wl-summary-mark-action-list' for the detail of element."
            (cons (wl-summary-action-mark action)
                  wl-summary-skip-mark-list))))
   (define-key wl-summary-mode-map "k" wl-summary-spam-map)
-  (define-key wl-summary-mode-map "ms" 'wl-summary-target-mark-register-as-spam)
-  (define-key wl-summary-mode-map "mn" 'wl-summary-target-mark-register-as-good))
+  (define-key
+    wl-summary-mode-map "ms" 'wl-summary-target-mark-register-as-spam)
+  (define-key
+    wl-summary-mode-map "mn" 'wl-summary-target-mark-register-as-good))
 
 (require 'product)
 (product-provide (provide 'wl-spam) (require 'wl-version))