* elmo.el (elmo-folder-move-messages): Open source folder before
authordmaus <dmaus>
Sun, 1 Aug 2010 11:02:43 +0000 (11:02 +0000)
committerdmaus <dmaus>
Sun, 1 Aug 2010 11:02:43 +0000 (11:02 +0000)
moving messages.

If move-messages is called during an expire operation in folder-mode,
the source folder is not open.

elmo/ChangeLog
elmo/elmo.el

index 3ceb6d7..5af96fb 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-01  David Maus  <dmaus@ictsoc.de>
+
+       * elmo.el (elmo-folder-move-messages): Open source folder before
+       moving messages.
+
 2010-04-15  David Maus  <dmaus@ictsoc.de>
 
        * elmo-imap4.el (elmo-imap4-folder-name-syntax): Allow numbers in
index 15c935e..3b3e707 100644 (file)
@@ -1188,7 +1188,7 @@ Returns a list of message numbers successfully appended."
          (error "move: %d is not writable"
                 (elmo-folder-name-internal dst-folder)))
        (when messages
-         ;; src is already opened.
+         (elmo-folder-open-internal src-folder)
          (elmo-folder-open-internal dst-folder)
          (unless (setq succeeds (elmo-folder-append-messages dst-folder
                                                              src-folder