aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Steinthal <steintr@src.gnome.org>2002-04-12 09:37:34 +0800
committerRussell Steinthal <steintr@src.gnome.org>2002-04-12 09:37:34 +0800
commita00fe6ed72baf66a5792fd30d551215a1a835754 (patch)
tree77415950e64528ff8d69f7a94b66081503ab4a5e
parent045c2a07b9516383deb591fb1e68b2b48ea1bd14 (diff)
downloadgsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.tar
gsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.tar.gz
gsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.tar.bz2
gsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.tar.lz
gsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.tar.xz
gsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.tar.zst
gsoc2013-evolution-a00fe6ed72baf66a5792fd30d551215a1a835754.zip
Fix "Follow Up" searches by comparing to the empty string, rather than just
looking at the string value (which isn't a boolean) (Bug #233340 svn path=/trunk/; revision=16444
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/filtertypes.xml9
-rw-r--r--filter/vfoldertypes.xml4
3 files changed, 16 insertions, 4 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index ac3061ca73..d18e0e7dad 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,10 @@
+2002-04-11 Russell Steinthal <rms39@columbia.edu>
+
+ * filtertypes.xml: Fix "Follow Up" searches by generating a
+ boolean, rather than a string result (Fixes #23334)
+
+ * vfoldertypes.xml: Ditto
+
2002-04-09 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (double_click): This needs to return a gboolean
diff --git a/filter/filtertypes.xml b/filter/filtertypes.xml
index cf7fd3c35d..eab096b3ac 100644
--- a/filter/filtertypes.xml
+++ b/filter/filtertypes.xml
@@ -471,13 +471,13 @@
<option value="is">
<title>is Flagged</title>
<code>
- (match-all (user-tag "follow-up"))
+ (match-all (not (= (user-tag "follow-up") "")))
</code>
</option>
<option value="is not">
<title>is not Flagged</title>
<code>
- (match-all (not (user-tag "follow-up")))
+ (match-all (= (user-tag "follow-up") ""))
</code>
</option>
</input>
@@ -594,6 +594,11 @@
<code>(set-score ${score})</code>
<input type="score" name="score"/>
</part>
+ <part name="adj-score">
+ <title>Adjust Score</title>
+ <code>(adjust-score ${score})</code>
+ <input type="score" name="score"/>
+ </part>
<part name="set-status">
<title>Set Status</title>
<code>
diff --git a/filter/vfoldertypes.xml b/filter/vfoldertypes.xml
index 5808bbfffc..176cc94464 100644
--- a/filter/vfoldertypes.xml
+++ b/filter/vfoldertypes.xml
@@ -295,13 +295,13 @@
<option value="is">
<title>is Flagged</title>
<code>
- (match-all (user-tag "follow-up"))
+ (match-all (not (= (user-tag "follow-up") "")))
</code>
</option>
<option value="is not">
<title>is not Flagged</title>
<code>
- (match-all (not (user-tag "follow-up")))
+ (match-all (= (user-tag "follow-up") ""))
</code>
</option>
</input>