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
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:09 +0800
commit3d92a8f8015569c5272115dcfb6786630e33e8c2 (patch)
tree86e1aa3b92e0241dd36041e336bc6b21e3d4f1d0 /mail/em-vfolder-context.c
parent62813b1e79b9b38df783f481e8dd1bdc54dbc779 (diff)
downloadgsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.tar
gsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.tar.gz
gsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.tar.bz2
gsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.tar.lz
gsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.tar.xz
gsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.tar.zst
gsoc2013-evolution-3d92a8f8015569c5272115dcfb6786630e33e8c2.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);
}