From f9cf09a8bdb53d025026e7ec0a7c8588b4528491 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 17 Nov 2003 18:57:34 +0000 Subject: Use a folder_name rather than a path as the name argument to 2003-11-17 Jeffrey Stedfast * em-folder-tree.c (emft_popup_new_folder_response): Use a folder_name rather than a path as the name argument to camel_store_create_folder(), fixes creation of IMAP folders. svn path=/trunk/; revision=23395 --- mail/ChangeLog | 6 ++++++ mail/em-folder-tree.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 89203af080..9dc2d4b51e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-11-17 Jeffrey Stedfast + + * em-folder-tree.c (emft_popup_new_folder_response): Use a + folder_name rather than a path as the name argument to + camel_store_create_folder(), fixes creation of IMAP folders. + 2003-11-17 Not Zed * em-folder-selection-button.c (set_contents): handle an diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index c54c3fabd8..7e6866e73d 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -1233,7 +1233,7 @@ emft_popup_new_folder_response (EMFolderSelector *emfs, int response, EMFolderTr camel_object_unref (store); /* FIXME: camel_store_create_folder should just take full path names */ - path = g_strdup (path); + path = g_strdup (path[0] == '/' ? path + 1 : path); if (!(name = strrchr (path, '/'))) { name = path; parent = ""; -- cgit v1.2.3