diff options
author | Dan Winship <danw@src.gnome.org> | 2000-09-23 02:44:07 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-09-23 02:44:07 +0800 |
commit | 0eb67058be341cdc5f06e53aa018c7124c4cff58 (patch) | |
tree | 3fee9584fcd4dfb194b5f208cf2729f9f40419f2 /camel/providers/imap/camel-imap-folder.c | |
parent | 561de418565c43c36bb345cd15d6f02a64553849 (diff) | |
download | gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.tar gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.tar.gz gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.tar.bz2 gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.tar.lz gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.tar.xz gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.tar.zst gsoc2013-evolution-0eb67058be341cdc5f06e53aa018c7124c4cff58.zip |
The root folder's name is "", not the namespace. (camel_imap_folder_new):
* providers/imap/camel-imap-folder.c
(imap_get_subfolder_info_internal): The root folder's name is "",
not the namespace.
(camel_imap_folder_new): constify folder_name.
* providers/imap/camel-imap-store.c (get_folder): Create the
folder with folder_name, not folder_path.
(camel_imap_command_preliminary): Don't free cmdid here.
svn path=/trunk/; revision=5552
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 539b906ba6..7d744d701d 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -185,10 +185,10 @@ camel_imap_folder_get_type (void) } CamelFolder * -camel_imap_folder_new (CamelStore *parent, char *folder_name) +camel_imap_folder_new (CamelStore *parent, const char *folder_name) { CamelFolder *folder = CAMEL_FOLDER (camel_object_new (camel_imap_folder_get_type ())); - char *dir_sep, *short_name; + const char *dir_sep, *short_name; dir_sep = CAMEL_IMAP_STORE (parent)->dir_sep; short_name = strrchr (folder_name, *dir_sep); @@ -571,7 +571,7 @@ imap_get_subfolder_info_internal (CamelFolder *folder, CamelException *ex) } } - if (!strcmp (folder->name, namespace) && !found_inbox) { + if (!*folder->name && !found_inbox) { fi = g_new0 (CamelFolderInfo, 1); fi->full_name = g_strdup ("INBOX"); fi->name = g_strdup ("INBOX"); |