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-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
(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))))
(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))))
(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))
(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)))
(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))
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)
(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.")
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.
(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