diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-03-16 04:02:11 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-03-16 04:02:11 +0800 |
commit | c9a60dd957abdf0eae42b9fb968b08929e0cfaf7 (patch) | |
tree | e456527bafe786409ee2f863e13310ac204aed00 /camel | |
parent | ae8d1fe9e2e669d947c6198cb0707ef53139511b (diff) | |
download | gsoc2013-evolution-c9a60dd957abdf0eae42b9fb968b08929e0cfaf7.tar.gz gsoc2013-evolution-c9a60dd957abdf0eae42b9fb968b08929e0cfaf7.tar.zst gsoc2013-evolution-c9a60dd957abdf0eae42b9fb968b08929e0cfaf7.zip |
Always use '/' to derive the basename of the folder. folder->full_name is
2004-03-15 Jeffrey Stedfast <fejj@ximian.com>
* camel-folder.c (folder_rename): Always use '/' to derive the
basename of the folder. folder->full_name is always the UNIX-path
evrsion of the folder name, no matter what the actual path
delimeter is on the underlying store.
svn path=/trunk/; revision=25079
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-folder.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 3fd5091eb0..388c9c4130 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,10 @@ 2004-03-15 Jeffrey Stedfast <fejj@ximian.com> + * camel-folder.c (folder_rename): Always use '/' to derive the + basename of the folder. folder->full_name is always the UNIX-path + evrsion of the folder name, no matter what the actual path + delimeter is on the underlying store. + * providers/imap/camel-imap-store.c (get_folder_online): If the initial SELECT fails and CREATE is specified, clear the exception before attempting to CREATE, this way we don't have an exception diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 5e971667c4..620881b1fc 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -1442,7 +1442,7 @@ folder_rename (CamelFolder *folder, const char *new) g_free(folder->full_name); folder->full_name = g_strdup(new); g_free(folder->name); - tmp = strrchr(new, folder->parent_store->dir_sep); + tmp = strrchr(new, '/'); folder->name = g_strdup(tmp?tmp+1:new); } |