aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-04 02:07:50 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-04 02:07:50 +0800
commit76280e456d8d9789e9a9d2186926fc5607bd8967 (patch)
tree36625829ef5c079b42ac753f11913e82f8d8be08 /mail/e-mail-reader-utils.c
parent06411bdbbb3e6877c679007c269c84b05713f895 (diff)
downloadgsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.gz
gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.tar.zst
gsoc2013-evolution-76280e456d8d9789e9a9d2186926fc5607bd8967.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.c8
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 (