aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-backend.c
diff options
context:
space:
mode:
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 */