aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parenta91345154c8f0d5b1f19ac03b41049cd6812fe13 (diff)
downloadgsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar
gsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar.gz
gsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar.bz2
gsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar.lz
gsoc2013-evolution-798212b5586ea0ceecce9a3504d6ce965f09d76c.tar.xz
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')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-folder-browser.c2
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: