aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b1f961a6da..a2bddf1427 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-23 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * folder-browser.c (folder_browser_load_folder): Improved the
+ code to separate the imap namespace from the folder name.
+
2000-06-23 Peter Williams <peterw@curious-george.helixcode.com>
* component-factory.c: Include e-util/e-setup.h for the
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index d1e81f22c7..17b7df578c 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -101,7 +101,6 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name)
g_free (store_name);
} else if (!strncmp (name, "imap:", 5)) {
- /* uhm, I'm just guessing here - this code might be wrong */
char *service, *ptr;
fprintf (stderr, "\n****** name = %s ******\n", name);
@@ -120,10 +119,12 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name)
if (*ptr == '/') {
if (url && url->path) {
fprintf (stderr, "namespace = %s\n", url->path + 1);
- ptr += strlen (url->path);
+ ptr += strlen (url->path) + 1;
}
- for ( ; *ptr && *ptr == '/'; ptr++);
+ if (*ptr == '/')
+ ptr++;
+ /*for ( ; *ptr && *ptr == '/'; ptr++);*/
folder_name = g_strdup (ptr);