aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-06-23 10:29:37 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-06-23 10:29:37 +0800
commit30f5127773cfacc67b83ead6d644db07fa817381 (patch)
treecb5e050274198e43c04239981f0315fbccf31d81 /mail/folder-browser.c
parentd12be02179f502780ab5d8219dceac8c7b2d36e9 (diff)
downloadgsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.tar
gsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.tar.gz
gsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.tar.bz2
gsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.tar.lz
gsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.tar.xz
gsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.tar.zst
gsoc2013-evolution-30f5127773cfacc67b83ead6d644db07fa817381.zip
Now should correctly get the selected folder from the given URL.
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. svn path=/trunk/; revision=3704
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c5
1 files changed, 3 insertions, 2 deletions
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);