0.9.4claws6
authorChristoph Hohmann <reboot@gmx.ch>
Wed, 6 Aug 2003 17:14:56 +0000 (17:14 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Wed, 6 Aug 2003 17:14:56 +0000 (17:14 +0000)
* src/imap.c
        make sure source folder is selected when copying messages

ChangeLog.claws
configure.ac
src/imap.c

index 7ece7c4caf3465b84622298c4cd2a91ba8c44fd8..721c11bf7df929322a9ff0b20abf0dca4f5ff61d 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-06 [christoph] 0.9.4claws6
+
+       * src/imap.c
+               make sure source folder is selected when copying messages
+
 2003-08-06 [christoph] 0.9.4claws5
 
        * sync with 0.9.4cvs2
index 677334caf4e8fa42bc2b98466422422445fba2cf..d23fac3ed342199b0b43b4663c03aa84bcef300e 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=5
+EXTRA_VERSION=6
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 45a6a75f29fe203df8799605c3d520b874d679d5..f037258fdfa1682545bf0f91fa29e8fff63def7f 100644 (file)
@@ -944,6 +944,11 @@ static gint imap_do_copy_msgs(Folder *folder, FolderItem *dest,
                return -1;
        }
 
+       ok = imap_select(session, IMAP_FOLDER(folder), msginfo->folder->path,
+                        NULL, NULL, NULL, NULL);
+       if (ok != IMAP_SUCCESS)
+               return ok;
+
        destdir = imap_get_real_path(IMAP_FOLDER(folder), dest->path);
        seq_list = imap_get_seq_set_from_msglist(msglist);
        uid_mapping = g_relation_new(2);