From 9272361bba93ad292ebd148e3d3ba3a9ea9bd349 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 20 Jun 2000 21:11:07 +0000 Subject: Only fetch the summary if the folder summary doesn't already exist. When 2000-06-20 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (imap_get_summary): Only fetch the summary if the folder summary doesn't already exist. When the summary *does* exist, start fetching from 1, not 0. (imap_free_summary): Don't do anything here. (imap_finalize): Free the summary here instead of in imap_free_summary(). * camel-url.c (check_equal): No need to check s1 if s2 is NULL (camel_url_equal): Don't check the passwd component of the url. and in mail/component-factory.c (create_imap_storage): removal of debug statements mail/folder-browser.c (folder_browser_load_folder): improved imap service parser svn path=/trunk/; revision=3649 --- camel/camel-session.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'camel/camel-session.c') diff --git a/camel/camel-session.c b/camel/camel-session.c index 82334c978c..0df50c2906 100644 --- a/camel/camel-session.c +++ b/camel/camel-session.c @@ -183,7 +183,7 @@ camel_session_list_providers (CamelSession *session, gboolean load) } static void -service_cache_remove(CamelService *service, CamelSession *session) +service_cache_remove (CamelService *service, CamelSession *session) { g_hash_table_remove(session->service_cache, service->url); } @@ -201,7 +201,7 @@ camel_session_get_service (CamelSession *session, const char *url_string, return NULL; /* lookup in cache first */ - printf("looking up service in cache: %s\n", url_string); + printf("looking up service in cache: \"%s\"\n", camel_url_to_string (url, FALSE)); service = g_hash_table_lookup(session->service_cache, url); if (service != NULL) { printf("found!!\n"); @@ -225,8 +225,7 @@ camel_session_get_service (CamelSession *session, const char *url_string, return NULL; } } - provider = g_hash_table_lookup (session->providers, - url->protocol); + provider = g_hash_table_lookup (session->providers, url->protocol); } if (!provider || !provider->object_types[type]) { @@ -243,6 +242,7 @@ camel_session_get_service (CamelSession *session, const char *url_string, g_hash_table_insert(session->service_cache, url, service); gtk_signal_connect((GtkObject *)service, "destroy", service_cache_remove, session); } + return service; } -- cgit v1.2.3