diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-21 00:35:56 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-21 00:35:56 -0700 |
commit | 65baa4f4e7fc401e5af742b491a3bc0784f2cdf7 (patch) | |
tree | 97bfd13076c076431f779d7296f96b1df71e49f8 /notmuch-private.h | |
parent | 6a3b68edeffa53c3e1c9aa156eff46c5999077c5 (diff) |
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).
Diffstat (limited to 'notmuch-private.h')
-rw-r--r-- | notmuch-private.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |