From 49bad5e10fbf9a6f084d53ff1076df4f10aff049 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 24 Jul 2001 20:12:47 +0000 Subject: Do a case-insensitive comparison. (mail_generate_reply): Only resort to 2001-07-24 Jeffrey Stedfast * mail-callbacks.c (guess_me): Do a case-insensitive comparison. (mail_generate_reply): Only resort to the source account's identity if we can't find out which identity to use based on the recipients of the message first. * mail-config.c (mail_config_get_default_account): Make sure to return the 0th account if we don't have a default. We don't want to return NULL. * mail-callbacks.c (empty_trash): Use mail_tool_get_trash for the remote store trash folders. * mail-tools.c (mail_tool_get_trash): New convenience function. svn path=/trunk/; revision=11353 --- mail/component-factory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index 37e004a2d7..d7fb1ee8f9 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -137,7 +137,7 @@ create_view (EvolutionShellComponent *shell_component, } else if (g_strcasecmp (folder_type, "mailstorage") == 0) { CamelService *store; EvolutionStorage *storage; - + store = camel_session_get_service (session, physical_uri, CAMEL_PROVIDER_STORE, NULL); if (!store) @@ -147,20 +147,20 @@ create_view (EvolutionShellComponent *shell_component, camel_object_unref (CAMEL_OBJECT (store)); return EVOLUTION_SHELL_COMPONENT_NOTFOUND; } - + if (!gtk_object_get_data (GTK_OBJECT (storage), "connected")) mail_scan_subfolders (CAMEL_STORE(store), storage); camel_object_unref (CAMEL_OBJECT (store)); - + control = folder_browser_factory_new_control ("", corba_shell); } else if (g_strcasecmp (folder_type, "vtrash") == 0) { control = folder_browser_factory_new_control ("vtrash:file:/", corba_shell); } else return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE; - + if (!control) return EVOLUTION_SHELL_COMPONENT_NOTFOUND; - + *control_return = control; return EVOLUTION_SHELL_COMPONENT_OK; } -- cgit v1.2.3