X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=elmo%2Felmo-filter.el;h=05d8b5afdfff0f75bd9f2b173c6550123744ea56;hb=47b752addd6948e942ff3c3548e86b9c3c2b95d1;hp=8b56e661b14dfe22f15e756f3e4c5bdd0f626ae9;hpb=87f2dea980847b95329f4b3d5c6408a6e9387a90;p=elisp%2Fwanderlust.git diff --git a/elmo/elmo-filter.el b/elmo/elmo-filter.el index 8b56e66..05d8b5a 100644 --- a/elmo/elmo-filter.el +++ b/elmo/elmo-filter.el @@ -50,7 +50,7 @@ (if (string-match "^ */\\(.*\\)$" (cdr pair)) (elmo-filter-folder-set-target-internal folder - (elmo-make-folder (elmo-match-string 1 (cdr pair)))) + (elmo-get-folder (elmo-match-string 1 (cdr pair)))) (error "Folder syntax error `%s'" (elmo-folder-name-internal folder))) (elmo-filter-folder-set-require-msgdb-internal folder @@ -80,11 +80,13 @@ (when filterd (elmo-emit-signal 'flag-changed folder filterd))))) (elmo-connect-signal - target 'cache-changed folder - (elmo-define-signal-handler (folder target number) - (elmo-emit-signal 'cache-changed folder number)) - (elmo-define-signal-filter (folder target number) - (memq number (elmo-folder-list-messages folder nil t)))) + target 'status-changed folder + (elmo-define-signal-handler (folder target numbers) + (let ((filterd (elmo-list-filter + (elmo-folder-list-messages folder nil t) + numbers))) + (when filterd + (elmo-emit-signal 'status-changed folder filterd))))) (elmo-connect-signal target 'update-overview folder (elmo-define-signal-handler (folder target number)