* elmo-imap4.el (elmo-imap4-rename-folder): Send select command
before rename command.
+2001-02-16 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo-msgdb.el (elmo-msgdb-rename-path): Fix.
+
+ * elmo-imap4.el (elmo-imap4-rename-folder): Send select command
+ before rename command.
+
2001-02-14 Yuuichi Teranishi <teranisi@gohome.org>
* elmo2.el (elmo-buffer-cache-message): Added argument `unread'.
(defun elmo-imap4-rename-folder (old-spec new-spec)
(let ((session (elmo-imap4-get-session old-spec)))
+ (elmo-imap4-session-select-mailbox session
+ (elmo-imap4-spec-mailbox old-spec))
(elmo-imap4-send-command-wait session "close")
(elmo-imap4-send-command-wait
session
(elmo-delete-directory path t))))
(defun elmo-msgdb-rename-path (old-folder new-folder &optional old-spec new-spec)
- (let* ((old (directory-file-name (elmo-msgdb-expand-path old-spec)))
- (new (directory-file-name (elmo-msgdb-expand-path new-spec)))
+ (let* ((old (directory-file-name (elmo-msgdb-expand-path old-folder)))
+ (new (directory-file-name (elmo-msgdb-expand-path new-folder)))
(new-dir (directory-file-name (file-name-directory new))))
(if (not (file-directory-p old))
()