From 5c82c66fa702c0e0f87c9d576afc9db94e3d6ed0 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 24 Jul 2001 20:42:47 +0000 Subject: When dumping the CamelURL to a string, hide all the params. 2001-07-24 Jeffrey Stedfast * mail-ops.c (add_vtrash_info): When dumping the CamelURL to a string, hide all the params. svn path=/trunk/; revision=11354 --- mail/ChangeLog | 5 +++++ mail/mail-ops.c | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 40a70a862c..e73cb061f2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-07-24 Jeffrey Stedfast + + * mail-ops.c (add_vtrash_info): When dumping the CamelURL to a + string, hide all the params. + 2001-07-24 Jeffrey Stedfast * mail-callbacks.c (guess_me): Do a case-insensitive comparison. diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 143d871a61..c3b36f5008 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1019,11 +1019,11 @@ get_folderinfo_desc (struct _mail_msg *mm, int done) } static void -add_vtrash_info (CamelFolderInfo *info) +add_vtrash_info (CamelStore *store, CamelFolderInfo *info) { CamelFolderInfo *fi, *vtrash; + char *uri, *path; CamelURL *url; - char *uri; g_return_if_fail (info != NULL); @@ -1034,9 +1034,9 @@ add_vtrash_info (CamelFolderInfo *info) /* create our vTrash URL */ url = camel_url_new (info->url, NULL); - g_free (url->path); - url->path = g_strdup_printf ("/%s", CAMEL_VTRASH_NAME); - uri = camel_url_to_string (url, 0); + path = g_strdup_printf ("/%s", CAMEL_VTRASH_NAME); + camel_url_set_path (url, path); + uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL); camel_url_free (url); if (fi->sibling) { @@ -1065,15 +1065,15 @@ get_folderinfo_get (struct _mail_msg *mm) { struct _get_folderinfo_msg *m = (struct _get_folderinfo_msg *)mm; guint32 flags = CAMEL_STORE_FOLDER_INFO_RECURSIVE; - + if (camel_store_supports_subscriptions (m->store)) flags |= CAMEL_STORE_FOLDER_INFO_SUBSCRIBED; - - camel_operation_register(mm->cancel); + + camel_operation_register (mm->cancel); m->info = camel_store_get_folder_info (m->store, NULL, flags, &mm->ex); if (m->info && m->info->url) - add_vtrash_info (m->info); - camel_operation_unregister(mm->cancel); + add_vtrash_info (m->store, m->info); + camel_operation_unregister (mm->cancel); } static void -- cgit