From 30f5127773cfacc67b83ead6d644db07fa817381 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 23 Jun 2000 02:29:37 +0000 Subject: Now should correctly get the selected folder from the given URL. 2000-06-22 Jeffrey Stedfast * folder-browser.c (folder_browser_load_folder): Now should correctly get the selected folder from the given URL. svn path=/trunk/; revision=3704 --- mail/ChangeLog | 5 +++++ mail/folder-browser.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 14c752f9a4..43c143a1a4 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-06-22 Jeffrey Stedfast + + * folder-browser.c (folder_browser_load_folder): Now should + correctly get the selected folder from the given URL. + 2000-06-22 Chris Toshok * folder-browser.c (folder_browser_load_folder): add handling for diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 0220252e59..d1e81f22c7 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -119,11 +119,12 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name) for (ptr = (char *)(name + 7); *ptr && *ptr != '/'; ptr++); if (*ptr == '/') { if (url && url->path) { - fprintf (stderr, "namespace = %s\n", url->path); + fprintf (stderr, "namespace = %s\n", url->path + 1); ptr += strlen (url->path); } - ptr++; + for ( ; *ptr && *ptr == '/'; ptr++); + folder_name = g_strdup (ptr); fprintf (stderr, "getting folder: %s\n", folder_name); -- cgit v1.2.3