[evolution-data-server] Bug 730645 - Search / filtering for "has words" is broken
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 730645 - Search / filtering for "has words" is broken
- Date: Tue, 27 May 2014 16:55:55 +0000 (UTC)
commit d752840f2c60fae940046a984329d96b197c804d
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 dc55d34..12b204a 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]