diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-24 03:55:09 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-06-24 03:55:09 +0800 |
commit | c3d1ab1fc9025f51c5dd484d807eec0fb6641311 (patch) | |
tree | 5bd51f30528188bd80501eef68c60a3bb3e36267 /mail/folder-browser.c | |
parent | f415fa4b2897ca5021dce68cf6bd6750e271d4bd (diff) | |
download | gsoc2013-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/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |