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/component-factory.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/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index 749fc3c080..c94356660d 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -135,7 +135,7 @@ create_test_storage (EvolutionShellComponent *shell_component) return; } - storage = evolution_storage_new ("storage_name"); + storage = evolution_storage_new ("VFolders"); if (evolution_storage_register_on_shell (storage, corba_shell) != EVOLUTION_STORAGE_OK) { g_warning ("Cannot register storage"); @@ -160,6 +160,7 @@ create_test_storage (EvolutionShellComponent *shell_component) g_free(user); g_free(system); count = filter_driver_rule_count(fe); + for (i=0;i<count;i++) { struct filter_option *fo; GString *query; @@ -179,14 +180,14 @@ create_test_storage (EvolutionShellComponent *shell_component) sprintf(descunknown, "volder-%p", fo); desctext = descunknown; } - g_string_sprintf(query, "vfolder:/%s/vfolder/%s?", evolution_dir, desctext); + g_string_sprintf(query, "vfolder:%s/vfolder/%s?", evolution_dir, desctext); filter_driver_expand_option(fe, query, NULL, fo); name = g_strdup_printf("/%s", desctext); printf("Adding new vfolder: %s\n", query->str); evolution_storage_new_folder (storage, name, "mail", query->str, - name+1); + desctext); g_string_free(query, TRUE); g_free(name); } |