diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/em-folder-browser.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <psankar@novell.com> + + * em-folder-browser.c (get_view_query): + Search by Labels. + 2008-07-24 Srinivasa Ragavan <sragavan@novell.com> * 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: |