aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-backend.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-01-05 21:40:19 +0800
committerMilan Crha <mcrha@redhat.com>2010-01-05 21:40:19 +0800
commitac07595af4ebae379eb8df46366d47f808e0a305 (patch)
treecdbd71c928dfee07be4b814ed09cf4fe717c3d05 /modules/mail/e-mail-shell-backend.c
parent5c80f1534b435ff5c1c9cc88eb9f5c5c1124f82a (diff)
downloadgsoc2013-evolution-ac07595af4ebae379eb8df46366d47f808e0a305.tar.gz
gsoc2013-evolution-ac07595af4ebae379eb8df46366d47f808e0a305.tar.zst
gsoc2013-evolution-ac07595af4ebae379eb8df46366d47f808e0a305.zip
Bug #597816 - Read/save search folders with labels properly
Diffstat (limited to 'modules/mail/e-mail-shell-backend.c')
-rw-r--r--modules/mail/e-mail-shell-backend.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index ef25000efc..0f1680d0a7 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -759,6 +759,14 @@ e_mail_labels_get_filter_options (void)
name = e_mail_label_list_store_get_name (list_store, &iter);
tag = e_mail_label_list_store_get_tag (list_store, &iter);
+ if (g_str_has_prefix (tag, "$Label")) {
+ gchar *tmp = tag;
+
+ tag = g_strdup (tag + 6);
+
+ g_free (tmp);
+ }
+
option = g_new0 (struct _filter_option, 1);
option->title = e_str_without_underscores (name);
option->value = tag; /* takes ownership */