aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2000-06-24 03:55:09 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-06-24 03:55:09 +0800
commitc3d1ab1fc9025f51c5dd484d807eec0fb6641311 (patch)
tree5bd51f30528188bd80501eef68c60a3bb3e36267 /mail
parentf415fa4b2897ca5021dce68cf6bd6750e271d4bd (diff)
downloadgsoc2013-evolution-c3d1ab1fc9025f51c5dd484d807eec0fb6641311.tar.gz
gsoc2013-evolution-c3d1ab1fc9025f51c5dd484d807eec0fb6641311.tar.zst
gsoc2013-evolution-c3d1ab1fc9025f51c5dd484d807eec0fb6641311.zip
folder-browser.c: Improved the code to separate the imap namespace from the folder path
svn path=/trunk/; revision=3713
Diffstat (limited to 'mail')
-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);