aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2000-06-20 12:57:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-06-20 12:57:39 +0800
commit1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b (patch)
treeee0f8501c411c0f5294f1d9d762cd8d27f65e03a /mail/folder-browser.c
parent12da85716e3fa1734a363a240d302e72fbf422f8 (diff)
downloadgsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.tar
gsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.tar.gz
gsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.tar.bz2
gsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.tar.lz
gsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.tar.xz
gsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.tar.zst
gsoc2013-evolution-1ede35fcdd55e7d95faa2fc7d2b26e0388fc200b.zip
basically got IMAP into the tree view
svn path=/trunk/; revision=3643
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 3a94659423..2831f8bc24 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -102,13 +102,19 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name)
} else if (!strncmp(name, "imap:", 5)) {
/* uhm, I'm just guessing here - this code might be wrong */
- fprintf(stderr, "\n*** name = %s ***\n\n", name);
+ fprintf (stderr, "\n****** name = %s ******\n\n", name);
store = camel_session_get_store (session, name, ex);
if (store) {
char *folder_name;
- folder_name = name += 5;
- new_folder = camel_store_get_folder (store, folder_name, TRUE, ex);
+ folder_name = strstr (name, "//");
+ if (folder_name) {
+ for (folder_name += 2; *folder_name && *folder_name != '/'; folder_name++);
+ if (*folder_name) {
+ folder_name++;
+ new_folder = camel_store_get_folder (store, folder_name, TRUE, ex);
+ }
+ }
}
} else if (!strncmp(name, "file:", 5)) {
/* Change "file:" to "mbox:". */