Explicitly define method `elmo-folder-open-internal-p' for POP3 and
authordmaus <dmaus>
Sun, 24 Oct 2010 06:36:09 +0000 (06:36 +0000)
committerdmaus <dmaus>
Sun, 24 Oct 2010 06:36:09 +0000 (06:36 +0000)
Shimbun folder class prevent calling this method of the first parent,
elmo-net-folder which falls back to the default behaviour, always
return t.

* elmo-pop3.el (elmo-folder-open-internal-p): Define method for this
class.
* elmo-shimbun.el (elmo-folder-open-internal-p): Dto.
* elmo-multi.el (elmo-folder-open-internal-p): Fix invalid let
statement.

elmo/ChangeLog
elmo/elmo-multi.el
elmo/elmo-pop3.el
elmo/elmo-shimbun.el

index 90353ee..b07d013 100644 (file)
@@ -1,3 +1,11 @@
+2010-10-24  David Maus  <dmaus@ictsoc.de>
+
+       * elmo-pop3.el (elmo-folder-open-internal-p): Define method for
+       this class.
+       * elmo-shimbun.el (elmo-folder-open-internal-p): Dto.
+       * elmo-multi.el (elmo-folder-open-internal-p): Fix invalid let
+       statement.
+
 2010-10-14  David Maus  <dmaus@ictsoc.de>
 
        * elmo-multi.el (elmo-folder-open-internal-p): Evaluate symbol to
index f3fd075..4f15a9d 100644 (file)
       (elmo-folder-open-internal fld))))
 
 (luna-define-method elmo-folder-open-internal-p ((folder elmo-multi-folder))
-  (let (open t)
+  (let ((open t))
     (dolist (fld (elmo-multi-folder-children-internal folder) open)
       (setq open (and open (elmo-folder-open-internal-p fld))))))
 
index aff5d75..2801637 100644 (file)
@@ -789,6 +789,9 @@ until the login delay period has expired"))
   (when (elmo-pop3-folder-use-uidl folder)
     (elmo-location-map-load folder (elmo-folder-msgdb-path folder))))
 
+(luna-define-method elmo-folder-open-internal-p ((folder elmo-pop3-folder))
+  (elmo-location-map-alist folder))
+
 (luna-define-method elmo-folder-commit :after ((folder elmo-pop3-folder))
   (when (and (not elmo-inhibit-number-mapping)
             (elmo-folder-persistent-p folder))
index 889280a..f788b5f 100644 (file)
@@ -241,6 +241,9 @@ If it is the symbol `all', update overview for all shimbun folders."
         folder
         (elmo-map-folder-list-message-locations folder))))))
 
+(luna-define-method elmo-folder-open-internal-p ((folder elmo-shimbun-folder))
+  (elmo-location-map-alist folder))
+
 (luna-define-method elmo-folder-reserve-status-p ((folder elmo-shimbun-folder))
   t)