diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-05-30 04:39:19 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-30 04:39:19 +0800 |
commit | bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54 (patch) | |
tree | 216bff491d894d54da4dc53c1e681de96d47e490 /mail/folder-browser.c | |
parent | 82d8404f4f1aa027f23a99f17ab231785f92ac79 (diff) | |
download | gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.tar gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.tar.gz gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.tar.bz2 gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.tar.lz gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.tar.xz gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.tar.zst gsoc2013-evolution-bebbdbbbcb5a6cdd516e47fd78143ae4c782bf54.zip |
Hardcode the vfolder source to just the inbox (so at least it returns
2000-05-29 Not Zed <NotZed@HelixCode.com>
* folder-browser.c (folder_browser_load_folder): Hardcode the
vfolder source to just the inbox (so at least it returns
something).
* component-factory.c (create_test_storage): Create a vfolder dir
first, and put the folders in that.
(create_test_storage): Create the storage as VFolders, not
"storage_name" :)
svn path=/trunk/; revision=3269
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index f435d0cf50..82972e0dbd 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -87,11 +87,28 @@ folder_browser_load_folder (FolderBrowser *fb, const char *name) if (store) { new_folder = camel_store_get_folder (store, newquery, ex); + /* FIXME: do this properly rather than hardcoding */ +#warning "Find a way not to hardcode vfolder source" + { + CamelStore *st; + char *stname; + CamelFolder *source_folder; + extern char *evolution_dir; + + stname = g_strdup_printf("mbox://%s/local/Inbox", evolution_dir); + st = camel_session_get_store (session, stname, ex); + g_free (stname); + if (st) { + source_folder = camel_store_get_folder (st, "mbox", ex); + if (source_folder) { + camel_vee_folder_add_folder(new_folder, source_folder); + } + } + } } g_free(newquery); g_free(store_name); - /* FIXME: Add the mbox folders we search!!! */ } else if (!strncmp(name, "file:", 5)) { /* Change "file:" to "mbox:". */ store_name = g_strdup_printf ("mbox:%s", name + 5); |