From 798212b5586ea0ceecce9a3504d6ce965f09d76c Mon Sep 17 00:00:00 2001 From: Sankar P Date: Thu, 24 Jul 2008 08:29:30 +0000 Subject: Search by Labels. 2008-07-24 Sankar P * em-folder-browser.c (get_view_query): Search by Labels. svn path=/trunk/; revision=35830 --- mail/ChangeLog | 5 +++++ mail/em-folder-browser.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 29b7744039..b7ef88238a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2008-07-24 Sankar P + + * em-folder-browser.c (get_view_query): + Search by Labels. + 2008-07-24 Srinivasa Ragavan * mail/em-folder-browser.c: Revert Sankar's search hacks. 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: -- cgit