diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-17 04:32:06 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-17 04:32:06 +0800 |
commit | 01435199611a59f028c9093ab0cc476bad70fcc5 (patch) | |
tree | 697fb7a3f2e1ec176dc4f1e120698266a532a2b4 /mail | |
parent | a6c8b690b964552f57fa6fe2822beccc0489a7b4 (diff) | |
download | gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.tar gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.tar.gz gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.tar.bz2 gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.tar.lz gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.tar.xz gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.tar.zst gsoc2013-evolution-01435199611a59f028c9093ab0cc476bad70fcc5.zip |
Use camel_folder_get_uri().
2001-09-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_folder_to_cachename): Use
camel_folder_get_uri().
svn path=/trunk/; revision=12861
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <fejj@ximian.com> + + * mail-config.c (mail_config_folder_to_cachename): Use + camel_folder_get_uri(). + 2001-09-15 <NotZed@Ximian.com> * 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); |