aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-store.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-06-14 13:10:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-06-14 13:10:55 +0800
commite4b07cd9d139a74d974a484b95f176b5f0d7eb8e (patch)
tree2e19a561c291c8038b6dae3b27ee6e9ac3a72a2d /camel/providers/imap/camel-imap-store.c
parent9f197c605b64fb2ac740df9445897c5d3bb62447 (diff)
downloadgsoc2013-evolution-e4b07cd9d139a74d974a484b95f176b5f0d7eb8e.tar.gz
gsoc2013-evolution-e4b07cd9d139a74d974a484b95f176b5f0d7eb8e.tar.zst
gsoc2013-evolution-e4b07cd9d139a74d974a484b95f176b5f0d7eb8e.zip
Updated: a separator is now a char* rather than a single char because IMAP
2000-06-14 Jeffrey Stedfast <fejj@helixcode.com> * camel-folder.c (init): Updated: a separator is now a char* rather than a single char because IMAP can have a string for a directory separator. Also, since IMAP does not begin with a directory separator, there is a new argument (path_begins_with_sep) which decides if a directory should begin with a directory separator. * providers/imap/camel-imap-store.c (imap_create): Since, on connect, Camel tries to create INBOX (which already exists on every IMAP provider) we can return TRUE when the folder name is "INBOX". * providers/vee/camel-vee-folder.c (vee_init): Updated. * providers/imap/camel-imap-folder.c (camel_imap_folder_new): Updated. * providers/mbox/camel-mbox-store.c (get_folder): Updated. * providers/mbox/camel-mbox-folder.c (mbox_init): Updated. * providers/pop3/camel-pop3-folder.c (camel_pop3_folder_new): Updated. svn path=/trunk/; revision=3559
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r--camel/providers/imap/camel-imap-store.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index 96a830e210..65290336c4 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -324,16 +324,19 @@ imap_create (CamelFolder *folder, CamelException *ex)
gint status;
g_return_val_if_fail (folder != NULL, FALSE);
-
+
if (!(folder->full_name || folder->name)) {
camel_exception_set (ex, CAMEL_EXCEPTION_FOLDER_INVALID,
"invalid folder path. Use set_name ?");
return FALSE;
}
+
+ if (!strcmp(folder->full_name, "INBOX"))
+ return TRUE;
if (camel_folder_get_subfolder(folder->parent_folder, folder->name, FALSE, ex))
return TRUE;
-
+
/* create the directory for the subfolder */
status = camel_imap_command_extended (CAMEL_IMAP_STORE (folder->parent_store), NULL,
&result, "CREATE %s", folder->full_name);