From 65baa4f4e7fc401e5af742b491a3bc0784f2cdf7 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Oct 2009 00:35:56 -0700 Subject: notmuch dump: Fix the sorting of results. To properly support sorting in notmuch_query we know use an Enquire object. We also throw in a QueryParser too, so we're really close to being able to support arbitrary full-text searches. I took a look at the supported QueryParser syntax and chose a set of flags for everything I like, (such as supporting Boolean operators in either case ("AND" or "and"), supporting phrase searching, supporting + and - to include/preclude terms, and supporting a trailing * on any term as a wildcard). --- notmuch-private.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'notmuch-private.h') diff --git a/notmuch-private.h b/notmuch-private.h index 728c1a67..2bf6beb4 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -66,6 +66,15 @@ NOTMUCH_BEGIN_DECLS #endif #endif +/* These value numbers are chosen to be sup compatible (for now at + * least). */ + +typedef enum { + NOTMUCH_VALUE_MESSAGE_ID = 0, + NOTMUCH_VALUE_THREAD = 1, + NOTMUCH_VALUE_DATE = 2 +} notmuch_value_t; + /* xutil.c */ void * xcalloc (size_t nmemb, size_t size); -- cgit v1.2.3