aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser.c5
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 <fejj@helixcode.com>
+
+ * folder-browser.c (folder_browser_load_folder): Now should
+ correctly get the selected folder from the given URL.
+
2000-06-22 Chris Toshok <toshok@helixcode.com>
* 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);