* elmo-map.el (elmo-folder-open-internal): Don't load location map if
authordmaus <dmaus>
Sun, 31 Oct 2010 16:34:55 +0000 (16:34 +0000)
committerdmaus <dmaus>
Sun, 31 Oct 2010 16:34:55 +0000 (16:34 +0000)
it is already loaded.

* elmo.el (elmo-folder-open-internal-p)
(elmo-folder-move-messages): Method removed.
* elmo-filter.el (elmo-folder-open-internal-p): Dto.
* elmo-map.el (elmo-folder-open-internal-p): Dto.
* elmo-multi.el (elmo-folder-open-internal-p): Dto.
* elmo-pipe.el (elmo-folder-open-internal-p): Dto.
* elmo-pop3.el (elmo-folder-open-internal-p): Dto.
* elmo-shimbun.el (elmo-folder-open-internal-p): Dto.

elmo/ChangeLog
elmo/elmo-filter.el
elmo/elmo-map.el
elmo/elmo-multi.el
elmo/elmo-pipe.el
elmo/elmo-pop3.el
elmo/elmo-shimbun.el
elmo/elmo.el

index b07d013..7e9af8a 100644 (file)
@@ -1,3 +1,17 @@
+2010-10-31  David Maus  <dmaus@ictsoc.de>
+
+       * elmo-map.el (elmo-folder-open-internal): Don't load location map
+       if it is already loaded.
+
+       * elmo.el (elmo-folder-open-internal-p)
+       (elmo-folder-move-messages): Method removed.
+       * elmo-filter.el (elmo-folder-open-internal-p): Dto.
+       * elmo-map.el (elmo-folder-open-internal-p): Dto.
+       * elmo-multi.el (elmo-folder-open-internal-p): Dto.
+       * elmo-pipe.el (elmo-folder-open-internal-p): Dto.
+       * elmo-pop3.el (elmo-folder-open-internal-p): Dto.
+       * elmo-shimbun.el (elmo-folder-open-internal-p): Dto.
+
 2010-10-24  David Maus  <dmaus@ictsoc.de>
 
        * elmo-pop3.el (elmo-folder-open-internal-p): Define method for
index 65aacfa..700be31 100644 (file)
 (luna-define-method elmo-folder-open-internal ((folder elmo-filter-folder))
   (elmo-folder-open-internal (elmo-filter-folder-target-internal folder)))
 
-(luna-define-method elmo-folder-open-internal-p ((folder elmo-filter-folder))
-  (elmo-folder-open-internal-p (elmo-filter-folder-target-internal folder)))
-
 (luna-define-method elmo-folder-check ((folder elmo-filter-folder))
   (when (elmo-filter-folder-require-msgdb-internal folder)
     (elmo-folder-synchronize (elmo-filter-folder-target-internal folder))))
index 20c6f65..383124a 100644 (file)
@@ -227,15 +227,13 @@ Return new location alist."
     (elmo-folder-set-msgdb-internal folder new-msgdb)))
 
 (luna-define-method elmo-folder-open-internal ((folder elmo-map-folder))
-  (elmo-location-map-load folder (elmo-folder-msgdb-path folder))
+  (unless (elmo-location-map-alist folder)
+    (elmo-location-map-load folder (elmo-folder-msgdb-path folder)))
   (when (elmo-folder-plugged-p folder)
     (elmo-location-map-update
      folder
      (elmo-map-folder-list-message-locations folder))))
 
-(luna-define-method elmo-folder-open-internal-p ((folder elmo-map-folder))
-  (elmo-location-map-alist folder))
-
 (luna-define-method elmo-folder-commit :after ((folder elmo-map-folder))
   (when (elmo-folder-persistent-p folder)
     (elmo-location-map-save folder (elmo-folder-msgdb-path folder))))
index 4f15a9d..2e52de3 100644 (file)
 
 (luna-define-method elmo-folder-open-internal ((folder elmo-multi-folder))
   (dolist (fld (elmo-multi-folder-children-internal folder))
-    (unless (elmo-folder-open-internal-p fld)
-      (elmo-folder-open-internal fld))))
-
-(luna-define-method elmo-folder-open-internal-p ((folder elmo-multi-folder))
-  (let ((open t))
-    (dolist (fld (elmo-multi-folder-children-internal folder) open)
-      (setq open (and open (elmo-folder-open-internal-p fld))))))
+    (elmo-folder-open-internal fld)))
 
 (luna-define-method elmo-folder-check ((folder elmo-multi-folder))
   (dolist (fld (elmo-multi-folder-children-internal folder))
index 68bb479..f3c7ffc 100644 (file)
 (luna-define-method elmo-folder-open-internal ((folder elmo-pipe-folder))
   (elmo-folder-open-internal (elmo-pipe-folder-dst-internal folder)))
 
-(luna-define-method elmo-folder-open-internal-p ((folder elmo-pipe-folder))
-  (elmo-folder-open-internal-p (elmo-pipe-folder-dst-internal folder)))
-
 (luna-define-method elmo-folder-close-internal ((folder elmo-pipe-folder))
   (elmo-folder-close-internal (elmo-pipe-folder-dst-internal folder)))
 
index 2801637..aff5d75 100644 (file)
@@ -789,9 +789,6 @@ 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 f788b5f..889280a 100644 (file)
@@ -241,9 +241,6 @@ 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)
 
index c3c0bd7..3b3e707 100644 (file)
@@ -217,9 +217,6 @@ If optional LOAD-MSGDB is non-nil, msgdb is loaded.
 (luna-define-generic elmo-folder-open-internal (folder)
   "Open FOLDER (without loading saved folder status).")
 
-(luna-define-generic elmo-folder-open-internal-p (folder)
-  "Return non-nil if FOLDER is opened internally.")
-
 (luna-define-generic elmo-folder-check (folder)
   "Check the FOLDER to obtain newest information at the next list operation.")
 
@@ -716,10 +713,6 @@ Return a cons cell of (NUMBER-CROSSPOSTS . NEW-FLAG-ALIST).")
   nil ; default is do nothing.
   )
 
-(luna-define-method elmo-folder-open-internal-p ((folder elmo-folder))
-  t ; default is always opened internally
-  )
-
 (luna-define-method elmo-folder-check ((folder elmo-folder))
   nil) ; default is noop.
 
@@ -1195,8 +1188,7 @@ Returns a list of message numbers successfully appended."
          (error "move: %d is not writable"
                 (elmo-folder-name-internal dst-folder)))
        (when messages
-         (unless (elmo-folder-open-internal-p src-folder)
-           (elmo-folder-open-internal src-folder))
+         (elmo-folder-open-internal src-folder)
          (elmo-folder-open-internal dst-folder)
          (unless (setq succeeds (elmo-folder-append-messages dst-folder
                                                              src-folder