* elmo-msgdb.el (elmo-msgdb-rename-path): Fix.
authorteranisi <teranisi>
Thu, 15 Feb 2001 22:19:32 +0000 (22:19 +0000)
committerteranisi <teranisi>
Thu, 15 Feb 2001 22:19:32 +0000 (22:19 +0000)
* elmo-imap4.el (elmo-imap4-rename-folder): Send select command
 before rename command.

elmo/ChangeLog
elmo/elmo-imap4.el
elmo/elmo-msgdb.el

index a853a0c..6b1bd54 100644 (file)
@@ -1,3 +1,10 @@
+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'.
index cc6ab2a..aa0c58a 100644 (file)
@@ -622,6 +622,8 @@ BUFFER must be a single-byte buffer."
 
 (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
index 80833b9..b4cbcf4 100644 (file)
@@ -817,8 +817,8 @@ Header region is supposed to be narrowed."
        (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))
        ()