aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-02-15 06:26:51 +0800
committerDan Winship <danw@src.gnome.org>2001-02-15 06:26:51 +0800
commit4029db7b4c554fb76d22d5aa8a8a841c4887d592 (patch)
tree14921b0d9ff3783dd0258c5f119d9609b0978013 /camel/providers/imap
parentcb6f0cd1110c86eca9efd3e0c90127792e4431b4 (diff)
downloadgsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.tar
gsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.tar.gz
gsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.tar.bz2
gsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.tar.lz
gsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.tar.xz
gsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.tar.zst
gsoc2013-evolution-4029db7b4c554fb76d22d5aa8a8a841c4887d592.zip
(create_folder): Oops, and fix bug involving namespaces
svn path=/trunk/; revision=8233
Diffstat (limited to 'camel/providers/imap')
-rw-r--r--camel/providers/imap/camel-imap-store.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index d02a2f991e..1355cedb76 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -703,10 +703,9 @@ create_folder (CamelStore *store, const char *parent_name,
CamelFolderInfo *fi;
char *full_name;
- if (parent_name)
- full_name = imap_concat (imap_store, parent_name, folder_name);
- else
- full_name = g_strdup (folder_name);
+ if (!parent_name)
+ parent_name = imap_store->namespace;
+ full_name = imap_concat (imap_store, parent_name, folder_name);
imap_create (imap_store, full_name, ex);
if (camel_exception_is_set (ex)) {