aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-06-21 05:11:07 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-06-21 05:11:07 +0800
commit9272361bba93ad292ebd148e3d3ba3a9ea9bd349 (patch)
treef3aacb178e26c2ad70a02e17ddc856523fcaf638 /camel/camel-session.c
parent8f881bd9d5bf26d3534174fa238030e8026ff749 (diff)
downloadgsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.gz
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.bz2
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.lz
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.xz
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.tar.zst
gsoc2013-evolution-9272361bba93ad292ebd148e3d3ba3a9ea9bd349.zip
Only fetch the summary if the folder summary doesn't already exist. When
2000-06-20 Jeffrey Stedfast <fejj@helixcode.com> * 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
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c8
1 files changed, 4 insertions, 4 deletions
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;
}