* elmo-filter.el (elmo-filter-folder-list-unreads-internal): Call
authorhmurata <hmurata>
Sat, 19 Jan 2002 08:35:18 +0000 (08:35 +0000)
committerhmurata <hmurata>
Sat, 19 Jan 2002 08:35:18 +0000 (08:35 +0000)
method of target folder with self mark-alist if MARK-ALIST is nil.

elmo/ChangeLog
elmo/elmo-filter.el

index a5d5e70..377d1fe 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-19  Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>
+
+       * elmo-filter.el (elmo-filter-folder-list-unreads-internal): Call
+       method of target folder with self mark-alist if MARK-ALIST is nil.
+
 2002-01-19  Kenichi OKADA  <okada@opaopa.org>
 
        * elmo-version.el (elmo-version): Up to 2.9.5.
index 3a29327..11b4cbd 100644 (file)
                                                           mark-alist)
   (let ((unreads (elmo-folder-list-unreads-internal
                  (elmo-filter-folder-target-internal folder)
-                 unread-marks mark-alist)))
+                 unread-marks
+                 (or mark-alist
+                     (elmo-msgdb-get-mark-alist
+                      (elmo-folder-msgdb folder))))))
     (unless (listp unreads)
       (setq unreads
            (delq nil