diff options
Diffstat (limited to 'mail/e-mail-folder-pane.c')
-rw-r--r-- | mail/e-mail-folder-pane.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mail/e-mail-folder-pane.c b/mail/e-mail-folder-pane.c index a8c2a3d971..54d5cc4c65 100644 --- a/mail/e-mail-folder-pane.c +++ b/mail/e-mail-folder-pane.c @@ -107,7 +107,7 @@ mail_paned_view_open_selected_mail (EMailPanedView *view) const gchar *uid = uids->pdata[ii]; CamelFolder *real_folder; CamelMessageInfo *info; - gchar *real_folder_uri; + const gchar *real_folder_uri; gchar *real_uid; if (!CAMEL_IS_VEE_FOLDER (folder)) { @@ -122,7 +122,7 @@ mail_paned_view_open_selected_mail (EMailPanedView *view) real_folder = camel_vee_folder_get_location ( CAMEL_VEE_FOLDER (folder), (CamelVeeMessageInfo *) info, &real_uid); - real_folder_uri = mail_tools_folder_to_url (real_folder); + real_folder_uri = camel_folder_get_uri (real_folder); if (em_utils_folder_is_drafts (real_folder, real_folder_uri) || em_utils_folder_is_outbox (real_folder, real_folder_uri)) { @@ -137,7 +137,6 @@ mail_paned_view_open_selected_mail (EMailPanedView *view) g_ptr_array_add (views, g_strdup (uid)); } - g_free (real_folder_uri); camel_folder_free_message_info (folder, info); } |