[evolution-data-server/evolution-data-server-3-12] Bug 730645 - Search / filtering for "has words" is broken



commit a342cec6872e3c15e0c9b1e164d44459cb949368
Author: Milan Crha <mcrha redhat com>
Date:   Tue May 27 18:54:59 2014 +0200

    Bug 730645 - Search / filtering for "has words" is broken

 camel/camel-folder-search.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-folder-search.c b/camel/camel-folder-search.c
index 66f79ce..4faa992 100644
--- a/camel/camel-folder-search.c
+++ b/camel/camel-folder-search.c
@@ -712,6 +712,15 @@ folder_search_dummy (CamelSExp *sexp,
        return r;
 }
 
+static CamelSExpResult *
+folder_search_header_has_words (CamelSExp *sexp,
+                               gint argc,
+                               CamelSExpResult **argv,
+                               CamelFolderSearch *search)
+{
+       return check_header (sexp, argc, argv, search, CAMEL_SEARCH_MATCH_WORD);
+}
+
 static void
 folder_search_dispose (GObject *object)
 {
@@ -783,6 +792,10 @@ folder_search_constructed (GObject *object)
                        }
                }
        }
+
+       camel_sexp_add_function (
+               search->sexp, 0, "header-has-words",
+               (CamelSExpFunc) folder_search_header_has_words, search);
 }
 
 /* implement an 'array not', i.e. everything in the summary, not in the supplied array */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]