aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
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);