aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 04:43:51 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:09 +0800
commit9397acfb99d27cf79aa8b9a782bfc2a04efd328b (patch)
tree2639f26b93414927956d58911f8395b420918d14
parentbbca9758424359d148f8c36ea77e3f455eab5ade (diff)
downloadgsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.tar
gsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.tar.gz
gsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.tar.bz2
gsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.tar.lz
gsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.tar.xz
gsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.tar.zst
gsoc2013-evolution-9397acfb99d27cf79aa8b9a782bfc2a04efd328b.zip
Simplify em_vfolder_rule_from_address().
-rw-r--r--mail/mail-autofilter.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index 619002de03..e2b6e9ee7d 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -340,19 +340,17 @@ em_vfolder_rule_from_address (EMVFolderContext *context,
{
EFilterRule *rule;
EMailSession *session;
- gchar *uri, *euri;
+ gchar *uri;
uri = e_mail_folder_uri_from_folder (folder);
- euri = em_uri_from_camel (uri);
session = em_vfolder_context_get_session (context);
rule = em_vfolder_rule_new (session);
- em_vfolder_rule_add_source (EM_VFOLDER_RULE (rule), euri);
+ em_vfolder_rule_add_source (EM_VFOLDER_RULE (rule), uri);
rule_from_address (rule, E_RULE_CONTEXT (context), addr, flags);
g_free (uri);
- g_free (euri);
return rule;
}