elmo-message-accessible-p instead of elmo-message-cached-p.
* elmo.el (elmo-message-accessible-p): Renamed from
elmo-message-cached-p and rewritten.
+2002-10-28  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * elmo.el (elmo-message-accessible-p): Renamed from
+       elmo-message-cached-p and rewritten.
+
 2002-10-27  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * elmo.el (elmo-folder-list-flagged): New generic function.
 
        folder
        (elmo-folder-expand-msgdb-path folder))))
 
-(defun elmo-message-cached-p (folder number)
-  "Get cache status of the message in the msgdb."
-  (elmo-msgdb-get-cached (elmo-folder-msgdb folder) number))
+(defun elmo-message-accessible-p (folder number)
+  "Get accessibility of the message.
+Return non-nil when message is accessible."
+  (or (elmo-folder-plugged-p folder)
+      (elmo-folder-local-p folder)
+      (elmo-msgdb-get-cached (elmo-folder-msgdb folder) number)))
 
 (defun elmo-message-set-cached (folder number cached)
   "Set cache status of the message in the msgdb.
 
+2002-10-28  Yuuichi Teranishi  <teranisi@gohome.org>
+
+       * wl-summary.el (wl-summary-next-message): Use
+       elmo-message-accessible-p instead of elmo-message-cached-p.
+
 2002-10-27  Yuuichi Teranishi  <teranisi@gohome.org>
 
        * wl-util.el (wl-regexp-opt): Define as an alias for elmo-regexp-opt.
 
          (nums (memq num (if (eq direction 'up)
                              (reverse wl-summary-buffer-number-list)
                            wl-summary-buffer-number-list)))
-         (plugged (elmo-folder-plugged-p wl-summary-buffer-elmo-folder))
          flagged-list nums2)
       (unless hereto (setq nums (cdr nums)))
       (setq nums2 nums)
                                (cdr (car cur-spec))))
                         (while nums
                           (if (and (memq (car nums) flagged-list)
-                                   (or plugged
-                                       (elmo-message-cached-p
-                                        wl-summary-buffer-elmo-folder
-                                        (car nums))))
+                                   (elmo-message-accessible-p
+                                    wl-summary-buffer-elmo-folder
+                                    (car nums)))
                               (throw 'done (car nums)))
                           (setq nums (cdr nums)))))
                    ((eq (car (car cur-spec)) 't)