aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-vfolder-context.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 04:20:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-06 04:21:56 +0800
commited94c3461ea6a4df6dc0bd8eba31952650690e4d (patch)
tree60b7369bb231c696084eab3bb91bd260d4316ab5 /mail/em-vfolder-context.c
parent575f27afecf4d16b7badd20856cddd2c56790b91 (diff)
downloadgsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.tar
gsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.tar.gz
gsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.tar.bz2
gsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.tar.lz
gsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.tar.xz
gsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.tar.zst
gsoc2013-evolution-ed94c3461ea6a4df6dc0bd8eba31952650690e4d.zip
EMFilterFolderElement: Use the new folder URI format.
No longer need to distinguish between Camel URIs and Evolution URIs.
Diffstat (limited to 'mail/em-vfolder-context.c')
-rw-r--r--mail/em-vfolder-context.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/mail/em-vfolder-context.c b/mail/em-vfolder-context.c
index 5f78da434a..ebad8f2bac 100644
--- a/mail/em-vfolder-context.c
+++ b/mail/em-vfolder-context.c
@@ -124,18 +124,13 @@ vfolder_context_new_element (ERuleContext *context,
if (strcmp (type, "score") == 0)
return e_filter_int_new_type("score", -3, 3);
- if (strcmp (type, "folder-curi") == 0) {
- EFilterElement *element;
-
- element = em_filter_folder_element_new (priv->session);
- ((EMFilterFolderElement *) element)->store_camel_uri = TRUE;
-
- return element;
- }
-
if (strcmp (type, "folder") == 0)
return em_filter_folder_element_new (priv->session);
+ /* XXX Legacy type name. Same as "folder" now. */
+ if (strcmp (type, "folder-curi") == 0)
+ return em_filter_folder_element_new (priv->session);
+
return E_RULE_CONTEXT_CLASS (em_vfolder_context_parent_class)->
new_element (context, type);
}