aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/searchtypes.xml4
2 files changed, 8 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9c26cece04..220ad054de 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
2008-04-30 Milan Crha <mcrha@redhat.com>
+ ** Fix for bug #530245
+
+ * searchtypes.xml: Let searches work with labels again.
+
+2008-04-30 Milan Crha <mcrha@redhat.com>
+
** Fix for bug #467892
* em-folder-view.c: (em_folder_view_open_selected):
diff --git a/mail/searchtypes.xml b/mail/searchtypes.xml
index c39791843e..1f7dcfe44a 100644
--- a/mail/searchtypes.xml
+++ b/mail/searchtypes.xml
@@ -260,13 +260,13 @@
<option value="is">
<title>is</title>
<code>
- (match-all (= (user-tag "label") ${versus}))
+ (match-all (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus})))
</code>
</option>
<option value="is-not">
<title>is not</title>
<code>
- (match-all (not (= (user-tag "label") ${versus})))
+ (match-all (not (or (= (user-tag "label") ${versus}) (user-flag (+ "$Label" ${versus})) (user-flag ${versus}))))
</code>
</option>
</input>