diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-04 02:07:50 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:06 +0800 |
commit | b73fe7218fedc76c1f5860c02315eac957669167 (patch) | |
tree | 6f339a60996440986d447bca07c58cd623144457 /mail/e-mail-reader-utils.c | |
parent | 839b17d1fd5265f0dd32e63be2b9146466266757 (diff) | |
download | gsoc2013-evolution-b73fe7218fedc76c1f5860c02315eac957669167.tar.gz gsoc2013-evolution-b73fe7218fedc76c1f5860c02315eac957669167.tar.zst gsoc2013-evolution-b73fe7218fedc76c1f5860c02315eac957669167.zip |
Build vfolder rules with CamelFolders instead of folder URIs.
Diffstat (limited to 'mail/e-mail-reader-utils.c')
-rw-r--r-- | mail/e-mail-reader-utils.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c index 5953f64006..cb3eef5796 100644 --- a/mail/e-mail-reader-utils.c +++ b/mail/e-mail-reader-utils.c @@ -578,17 +578,15 @@ mail_reader_create_vfolder_cb (CamelFolder *folder, { struct { EMailSession *session; - gchar *uri; gint type; } *vfolder_data = user_data; if (message != NULL) vfolder_gui_add_from_message ( vfolder_data->session, message, - vfolder_data->type, vfolder_data->uri); + vfolder_data->type, folder); g_object_unref (vfolder_data->session); - g_free (vfolder_data->uri); g_free (vfolder_data); } @@ -599,12 +597,10 @@ e_mail_reader_create_vfolder_from_selected (EMailReader *reader, EMailBackend *backend; EMailSession *session; CamelFolder *folder; - const gchar *folder_uri; GPtrArray *uids; struct { EMailSession *session; - gchar *uri; gint type; } *vfolder_data; @@ -614,13 +610,11 @@ e_mail_reader_create_vfolder_from_selected (EMailReader *reader, session = e_mail_backend_get_session (backend); folder = e_mail_reader_get_folder (reader); - folder_uri = e_mail_reader_get_folder_uri (reader); uids = e_mail_reader_get_selected_uids (reader); if (uids->len == 1) { vfolder_data = g_malloc (sizeof (*vfolder_data)); vfolder_data->session = g_object_ref (session); - vfolder_data->uri = g_strdup (folder_uri); vfolder_data->type = vfolder_type; mail_get_message ( |