(wl-spam-setup): Add hook
authorhmurata <hmurata>
Sun, 24 Oct 2004 09:24:47 +0000 (09:24 +0000)
committerhmurata <hmurata>
Sun, 24 Oct 2004 09:24:47 +0000 (09:24 +0000)
`wl-summary-auto-check-spam' to `wl-summary-sync-updated-hook'
instead of `wl-summary-prepare-hook'.

wl/ChangeLog
wl/wl-spam.el

index 1905757..e917c93 100644 (file)
@@ -1,5 +1,9 @@
 2004-10-24  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
 
+       * wl-spam.el (wl-spam-setup): Add hook
+       `wl-summary-auto-check-spam' to `wl-summary-sync-updated-hook'
+       instead of `wl-summary-prepare-hook'.
+
        * wl-summary.el (wl-summary-set-flags): Allow flag operation even
        if folder type is `'flag'.
        (wl-summary-mark-as-important): Ditto.
index 1986171..690242b 100644 (file)
@@ -332,7 +332,7 @@ See `wl-summary-mark-action-list' for the detail of element."
     wl-spam-folder))
 
 (defun wl-spam-setup ()
-  (add-hook 'wl-summary-prepared-hook #'wl-summary-auto-check-spam)
+  (add-hook 'wl-summary-sync-updated-hook #'wl-summary-auto-check-spam)
   (let ((actions wl-summary-mark-action-list)
        action)
     (while actions