aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.c
diff options
context:
space:
mode:
authorSankar P <psankar@novell.com>2008-07-24 16:29:30 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2008-07-24 16:29:30 +0800
commit798212b5586ea0ceecce9a3504d6ce965f09d76c (patch)
treecc95412021f3093e03687970e232eb7922f02333 /mail/em-folder-browser.c
parenta91345154c8f0d5b1f19ac03b41049cd6812fe13 (diff)
downloadgsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar.gz
gsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar.zst
gsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.zip
Search by Labels.
2008-07-24 Sankar P <psankar@novell.com> * em-folder-browser.c (get_view_query): Search by Labels. svn path=/trunk/; revision=35830
Diffstat (limited to 'mail/em-folder-browser.c')
-rw-r--r--mail/em-folder-browser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index 3c561a00fa..f46b30c453 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -927,7 +927,7 @@ get_view_query (ESearchBar *esb, CamelFolder *folder, const char *folder_uri)
} break;
case VIEW_LABEL:
tag = (char *)g_object_get_data (G_OBJECT (menu_item), "LabelTag");
- view_sexp = g_strdup_printf ("(match-all (and (and (user-tag \"label\" \"%s\")) (or (user-flag \"$Label%s\")) (or (user-flag \"%s\"))))", tag, tag, tag);
+ view_sexp = g_strdup_printf ("(match-all (or (= (user-tag \"label\") \"%s\") (user-flag \"$Label%s\") (user-flag \"%s\")))", tag, tag, tag);
duplicate = FALSE;
break;
case VIEW_MESSAGES_MARKED_AS_IMPORTANT: