diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-ops.c | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 40a70a862c..e73cb061f2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,10 @@ 2001-07-24 Jeffrey Stedfast <fejj@ximian.com> + * mail-ops.c (add_vtrash_info): When dumping the CamelURL to a + string, hide all the params. + +2001-07-24 Jeffrey Stedfast <fejj@ximian.com> + * mail-callbacks.c (guess_me): Do a case-insensitive comparison. (mail_generate_reply): Only resort to the source account's identity if we can't find out which identity to use based on the 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 |