diff options
author | Mark Walters <markwalters1009@gmail.com> | 2012-03-01 22:30:37 +0000 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-03-02 08:27:47 -0400 |
commit | c9eb94d7fb520612374870dda9b9058a85c9b03d (patch) | |
tree | 1164a80d3d9f978c79d7c4779519ad02b766f007 /lib/notmuch.h | |
parent | 08f7b026a9f8a32fbe14eb73b99a026544b22900 (diff) |
lib: Make notmuch_query_search_messages set the exclude flag
Add a flag NOTMUCH_MESSAGE_FLAG_EXCLUDED which is set by
notmuch_query_search_messages for excluded messages. Also add an
option omit_excluded_messages to the search that we do not want the
excludes at all.
This exclude flag will be added to notmuch_query_search threads in the
next patch.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r-- | lib/notmuch.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index 7929fe72..f75afaeb 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -449,6 +449,13 @@ typedef enum { const char * notmuch_query_get_query_string (notmuch_query_t *query); +/* Specify whether to results should omit the excluded results rather + * than just marking them excluded. This is useful for passing a + * notmuch_messages_t not containing the excluded messages to other + * functions. */ +void +notmuch_query_set_omit_excluded_messages (notmuch_query_t *query, notmuch_bool_t omit); + /* Specify the sorting desired for this query. */ void notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort); @@ -895,7 +902,8 @@ notmuch_message_get_filenames (notmuch_message_t *message); /* Message flags */ typedef enum _notmuch_message_flag { - NOTMUCH_MESSAGE_FLAG_MATCH + NOTMUCH_MESSAGE_FLAG_MATCH, + NOTMUCH_MESSAGE_FLAG_EXCLUDED } notmuch_message_flag_t; /* Get a value of a flag for the email corresponding to 'message'. */ |