From c3d1ab1fc9025f51c5dd484d807eec0fb6641311 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 23 Jun 2000 19:55:09 +0000 Subject: folder-browser.c: Improved the code to separate the imap namespace from the folder path svn path=/trunk/; revision=3713 --- mail/ChangeLog | 5 +++++ mail/folder-browser.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'mail') 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 + + * folder-browser.c (folder_browser_load_folder): Improved the + code to separate the imap namespace from the folder name. + 2000-06-23 Peter Williams * 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); -- cgit