From 01435199611a59f028c9093ab0cc476bad70fcc5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 16 Sep 2001 20:32:06 +0000 Subject: Use camel_folder_get_uri(). 2001-09-16 Jeffrey Stedfast * mail-config.c (mail_config_folder_to_cachename): Use camel_folder_get_uri(). svn path=/trunk/; revision=12861 --- mail/ChangeLog | 5 +++++ mail/mail-config.c | 20 +++----------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 08b95312ad..0ddaf80b0b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-09-16 Jeffrey Stedfast + + * mail-config.c (mail_config_folder_to_cachename): Use + camel_folder_get_uri(). + 2001-09-15 * mail-vfolder.c: Major rewrite of most of the guts, handle diff --git a/mail/mail-config.c b/mail/mail-config.c index 862e133f09..d351907564 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -1812,25 +1812,11 @@ mail_config_service_set_save_passwd (MailConfigService *service, gboolean save_p char * mail_config_folder_to_cachename (CamelFolder *folder, const char *prefix) { - CamelService *service = CAMEL_SERVICE (folder->parent_store); char *url, *filename; - - /* This is the way it is for backward compatibility with - * the way it was, not because it's necessarily a good thing. - */ - - url = camel_url_to_string (service->url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS); - - /* Really we want to check CAMEL_IS_LOCAL_FOLDER here, but we - * can't do that. - */ - if (service->provider->flags & CAMEL_PROVIDER_IS_REMOTE) { - char *store_url = url; - url = g_strdup_printf ("%s/%s", store_url, folder->full_name); - g_free (store_url); - } + + url = camel_folder_get_uri (folder); e_filename_make_safe (url); - + filename = g_strdup_printf ("%s/config/%s%s", evolution_dir, prefix, url); g_free (url); -- cgit