Fixed problem with copying messages to IMAP folders when the
authorSergey Vlasov <vsu@users.sourceforge.net>
Tue, 12 Feb 2002 17:54:28 +0000 (17:54 +0000)
committerSergey Vlasov <vsu@users.sourceforge.net>
Tue, 12 Feb 2002 17:54:28 +0000 (17:54 +0000)
server uses something other than '/' as a namespace separator
(cyrus-imapd uses '.').

ChangeLog.claws
configure.in
src/imap.c

index 31ab5555725e389777177c7621ea29de1be8a9f6..ba8e6a126de16083e82fcd7cdd2488c750e4568c 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-12 [sergey]    0.7.0claws67
+
+       * src/imap.c
+               Fixed problem with copying messages to IMAP folders when the
+               server uses something other than '/' as a namespace separator
+               (cyrus-imapd uses '.').
+
 2002-02-12 [jens]      0.7.0claws66
 
        * po/de.po
index bdf8b0f13485fe998ab01403664f5db641e61b25..ae8edd9f9af09956ba8bfa234cc661d009e1942b 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws66
+EXTRA_VERSION=claws67
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index ad9e1bcadd97ed7185922b6705d0efcdb41d0f47..1170185c3fcfb3a029405dbee91d0ba4af314b2e 100644 (file)
@@ -588,6 +588,7 @@ gchar *imap_fetch_msg(Folder *folder, FolderItem *item, gint uid)
 gint imap_add_msg(Folder *folder, FolderItem *dest, const gchar *file,
                  gboolean remove_source)
 {
+       gchar *destdir;
        IMAPSession *session;
        gint ok;
 
@@ -599,7 +600,10 @@ gint imap_add_msg(Folder *folder, FolderItem *dest, const gchar *file,
        if (!session)
                return -1;
 
-       ok = imap_cmd_append(SESSION(session)->sock, dest->path, file);
+       destdir = imap_get_real_path(IMAP_FOLDER(folder), dest->path);
+       ok = imap_cmd_append(SESSION(session)->sock, destdir, file);
+       g_free (destdir);
+
        if (ok != IMAP_SUCCESS) {
                g_warning(_("can't append message %s\n"), file);
                return -1;