From 4029db7b4c554fb76d22d5aa8a8a841c4887d592 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 14 Feb 2001 22:26:51 +0000 Subject: (create_folder): Oops, and fix bug involving namespaces svn path=/trunk/; revision=8233 --- camel/ChangeLog | 3 ++- camel/providers/imap/camel-imap-store.c | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 123aaef782..7014035ac9 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -4,7 +4,8 @@ a folder when you don't know its full name. * providers/imap/camel-imap-store.c (create_folder): Implement. - + (create_folder): Oops, and fix bug involving namespaces + 2001-02-12 Not Zed * camel-mime-part.c (init_header_name_table): Add address headers 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)) { -- cgit v1.2.3