diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-01-14 19:17:33 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-01-16 21:06:35 -0400 |
commit | 3b76adf9e2c026dd03b820f4c6eab50e25444113 (patch) | |
tree | 6bbabb65792ec85f8660ed467b232a0952ff4b1e /lib/notmuch.h | |
parent | 982096d79df8d47ac62d9a74fa0a9baa9c008812 (diff) |
lib: Add support for automatically excluding tags from queries
This is useful for tags like "deleted" and "spam" that people
generally want to exclude from query results. These exclusions will
be overridden if a tag is explicitly mentioned in a query.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r-- | lib/notmuch.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index 9f23a106..7929fe72 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -457,6 +457,12 @@ notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort); notmuch_sort_t notmuch_query_get_sort (notmuch_query_t *query); +/* Add a tag that will be excluded from the query results by default. + * This exclusion will be overridden if this tag appears explicitly in + * the query. */ +void +notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag); + /* Execute a query for threads, returning a notmuch_threads_t object * which can be used to iterate over the results. The returned threads * object is owned by the query and as such, will only be valid until |