X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fquery.cc;fp=lib%2Fquery.cc;h=435f72296dc72ee495cdc20567e73ca121f10ddd;hp=a3fe379342959d0ba5a55f756893d8f348a29cff;hb=be7e83de96b706af418fc9f139ded4d50bf342f6;hpb=9ae4188610dc21101fe9bdeb158854fc7c63463e diff --git a/lib/query.cc b/lib/query.cc index a3fe3793..435f7229 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -23,10 +23,6 @@ #include /* GHashTable, GPtrArray */ -#if HAVE_SFSEXP -#include "sexp.h" -#endif - struct _notmuch_query { notmuch_database_t *notmuch; const char *query_string; @@ -210,8 +206,8 @@ _notmuch_query_ensure_parsed_sexpr (notmuch_query_t *query) if (query->parsed) return NOTMUCH_STATUS_SUCCESS; - query->xapian_query = Xapian::Query::MatchAll; - return NOTMUCH_STATUS_SUCCESS; + return _notmuch_sexp_string_to_xapian_query (query->notmuch, query->query_string, + query->xapian_query); } static notmuch_status_t