[evolution] Simplify em_vfolder_rule_from_address().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Simplify em_vfolder_rule_from_address().
- Date: Sat, 7 May 2011 15:27:18 +0000 (UTC)
commit 467bc6e244c574d872bc17faac7af00509626edf
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu May 5 16:43:51 2011 -0400
Simplify em_vfolder_rule_from_address().
mail/mail-autofilter.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index 619002d..e2b6e9e 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]