aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-01-26 14:09:43 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-01-26 14:09:43 +0800
commit66c8e42323d4bf2d19a2670f5be3e459f62d3b09 (patch)
tree031c2fcd1923ebfb16b667cbdab31d6b4087b3a3
parent6af5ca43fa2725b1254a90085dd1c6b856c41b24 (diff)
downloadgsoc2013-evolution-66c8e42323d4bf2d19a2670f5be3e459f62d3b09.tar.gz
gsoc2013-evolution-66c8e42323d4bf2d19a2670f5be3e459f62d3b09.tar.zst
gsoc2013-evolution-66c8e42323d4bf2d19a2670f5be3e459f62d3b09.zip
Fix the "sender contain" quicksearch rule by adding a missing
parenthesis; also make it the last item on the OptionMenu instead of the first one. svn path=/trunk/; revision=7834
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/folder-browser.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index b5ab8c1e41..2c9faed0af 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-26 Ettore Perazzoli <ettore@ximian.com>
+
+ * folder-browser.c: Add a missing parenthesis to the "from
+ contains" rule. Also make it the last item instead of the first
+ one.
+
2001-01-25 Iain Holmes <iain@ximian.com>
* component-factory.c (component_factory_init): Init the mail
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index f7f77ffe31..d7f70e4a64 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -227,21 +227,21 @@ static ESearchBarItem folder_browser_search_menu_items[] = {
};
enum {
- ESB_SENDER_CONTAINS,
ESB_BODY_SUBJECT_CONTAINS,
ESB_BODY_CONTAINS,
ESB_SUBJECT_CONTAINS,
ESB_BODY_DOES_NOT_CONTAIN,
ESB_SUBJECT_DOES_NOT_CONTAIN,
+ ESB_SENDER_CONTAINS,
};
static ESearchBarItem folder_browser_search_option_items[] = {
- { N_("Sender contains"), ESB_SENDER_CONTAINS },
{ N_("Body or subject contains"), ESB_BODY_SUBJECT_CONTAINS },
{ N_("Body contains"), ESB_BODY_CONTAINS },
{ N_("Subject contains"), ESB_SUBJECT_CONTAINS },
{ N_("Body does not contain"), ESB_BODY_DOES_NOT_CONTAIN },
{ N_("Subject does not contain"), ESB_SUBJECT_DOES_NOT_CONTAIN },
+ { N_("Sender contains"), ESB_SENDER_CONTAINS },
{ NULL, -1 }
};
@@ -249,12 +249,12 @@ static ESearchBarItem folder_browser_search_option_items[] = {
/* %s is replaced by the whole search string in quotes ...
possibly could split the search string into words as well ? */
static char *search_string[] = {
- "(match-all (header-contains \"from\" %s)",
"(or (body-contains %s) (match-all (header-contains \"Subject\" %s)))",
"(body-contains %s)",
"(match-all (header-contains \"Subject\" %s))",
"(match-all (not (body-contains %s)))",
"(match-all (not (header-contains \"Subject\" %s)))",
+ "(match-all (header-contains \"from\" %s))",
};
static void