diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-13 12:23:42 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-13 12:23:42 +0800 |
commit | c1f24d07e4670d9a98676ae700f567f658236e2d (patch) | |
tree | c005b78cf04de7d701a2e34d8f8ada41dc62db7a /mail/component-factory.c | |
parent | 05a0341981506392137e5ed820b80192d274c35d (diff) | |
download | gsoc2013-evolution-c1f24d07e4670d9a98676ae700f567f658236e2d.tar.gz gsoc2013-evolution-c1f24d07e4670d9a98676ae700f567f658236e2d.tar.zst gsoc2013-evolution-c1f24d07e4670d9a98676ae700f567f658236e2d.zip |
Updated to reflect changes to mail_do_scan_subfolders
2000-08-13 Jeffrey Stedfast <fejj@helixcode.com>
* component-factory.c (create_news_storage): Updated to reflect
changes to mail_do_scan_subfolders
(create_imap_storage): Same.
* mail-ops.c (mail_do_scan_subfolders): No longer takes an
add_INBOX argument
svn path=/trunk/; revision=4795
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index 480f68e4e3..7d17abda69 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -205,7 +205,7 @@ create_imap_storage (EvolutionShellComponent *shell_component, Evolution_Shell corba_shell; EvolutionStorage *storage; char *server, *p; - + shell_client = evolution_shell_component_get_owner (shell_component); if (shell_client == NULL) { g_warning ("We have no shell!?"); @@ -219,18 +219,18 @@ create_imap_storage (EvolutionShellComponent *shell_component, server++; for (p = server; *p && *p != '/'; p++); - + server = g_strndup (server, (gint)(p - server)); storage = evolution_storage_new (server); g_free (server); - + if (evolution_storage_register_on_shell (storage, corba_shell) != EVOLUTION_STORAGE_OK) { g_warning ("Cannot register storage"); return; } - - mail_do_scan_subfolders (source, TRUE, storage); + + mail_do_scan_subfolders (source, storage); } static void @@ -240,12 +240,12 @@ create_news_storage (EvolutionShellComponent *shell_component) EvolutionShellClient *shell_client; Evolution_Shell corba_shell; EvolutionStorage *storage; - char *source=NULL, *server, *p; - + char *source = NULL, *server, *p; + s = mail_config_get_default_news (); if (s) source = s->url; - + if (!source || g_strncasecmp (source, "news://", 7)) return; @@ -254,12 +254,12 @@ create_news_storage (EvolutionShellComponent *shell_component) g_warning ("We have no shell!?"); return; } - + corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client)); - + server = source + 7; for (p = server; *p && *p != '/'; p++); - + server = g_strndup (server, (gint)(p - server)); storage = evolution_storage_new (server); @@ -269,7 +269,7 @@ create_news_storage (EvolutionShellComponent *shell_component) g_warning ("Cannot register storage"); return; } - - mail_do_scan_subfolders (source, FALSE, storage); + + mail_do_scan_subfolders (source, storage); } |