aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-vfolder-context.c
diff options
context:
space:
mode:
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);
}