diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-07-05 07:06:41 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-07-05 07:06:41 +0800 |
commit | 45f3b7586781b65bc51cfd77630a06a505786159 (patch) | |
tree | 3bc273644195ec4a32dcb7ddb757f439c8ee119d /mail/component-factory.c | |
parent | d579c1160d6cde0948e6f1a75a4a5dd67c6d74b1 (diff) | |
download | gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.gz gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.bz2 gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.lz gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.xz gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.zst gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.zip |
Removed special-case code for NNTP support.
2002-07-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-accounts.c: Removed special-case code for NNTP support.
* mail-account-gui.c (mail_account_gui_setup): Allow configuration
of both mail and news accounts.
* component-factory.c (mail_load_storages): No longer need the
is-account argument.
* subscribe-dialog.c (populate_store_list): Don't special-case
news accounts anymore.
* mail-config.c (mail_config_get_default_news): Removed.
(mail_config_get_news): Removed.
(mail_config_add_news): Removed.
(mail_config_remove_news): Removed.
svn path=/trunk/; revision=17368
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index 6667ae4f24..7fe2a4e8a1 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -701,9 +701,6 @@ owner_set_cb (EvolutionShellComponent *shell_component, { GNOME_Evolution_Shell corba_shell; const GSList *accounts; -#ifdef ENABLE_NNTP - const GSList *news; -#endif int i; /* FIXME: should we ref this? */ @@ -723,12 +720,7 @@ owner_set_cb (EvolutionShellComponent *shell_component, vfolder_load_storage(corba_shell); accounts = mail_config_get_accounts (); - mail_load_storages (corba_shell, accounts, TRUE); - -#ifdef ENABLE_NNTP - news = mail_config_get_news (); - mail_load_storages (corba_shell, news, FALSE); -#endif + mail_load_storages (corba_shell, accounts); mail_local_storage_startup (shell_client, evolution_dir); mail_importer_init (shell_client); @@ -1392,10 +1384,8 @@ mail_load_storage_by_uri (GNOME_Evolution_Shell shell, const char *uri, const ch camel_object_unref (CAMEL_OBJECT (store)); } -/* FIXME: 'is_account_data' is an ugly hack, if we move support for - NNTP into the normal Account stuff, we can take it out -- fejj */ void -mail_load_storages (GNOME_Evolution_Shell shell, const GSList *sources, gboolean is_account_data) +mail_load_storages (GNOME_Evolution_Shell shell, const GSList *sources) { CamelException ex; const GSList *iter; @@ -1412,14 +1402,9 @@ mail_load_storages (GNOME_Evolution_Shell shell, const GSList *sources, gboolean const MailConfigService *service = NULL; char *name; - if (is_account_data) { - account = iter->data; - service = account->source; - name = account->name; - } else { - service = iter->data; - name = NULL; - } + account = iter->data; + service = account->source; + name = account->name; if (service == NULL || service->url == NULL || service->url[0] == '\0') continue; |