2000-09-29 Yuuichi Teranishi <teranisi@gohome.org>
+ * elmo-cache.el (elmo-cache-search-all): Added argument `from-msgs'.
+
* elmo2.el (elmo-generic-list-folder-unread): Rewrite.
(elmo-list-folder-unread): Rewrite.
(elmo-list-folder-important): Ditto.
;; not directory.
path))))))
-(defun elmo-cache-search-all (folder condition)
+(defun elmo-cache-search-all (folder condition from-msgs)
(let* ((number-alist (elmo-msgdb-number-load
(elmo-msgdb-expand-path folder)))
- (number-list (mapcar 'car number-alist))
+ (number-list (or from-msgs (mapcar 'car number-alist)))
(num (length number-alist))
cache-file
ret-val
percent i)
(setq i 0)
(while number-alist
- (if (and (setq cache-file (elmo-cache-exists-p (cdr (car
+ (if (and (memq (car (car number-alist)) number-list)
+ (setq cache-file (elmo-cache-exists-p (cdr (car
number-alist))
folder
(car (car