X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-search.c;h=d504051c618ae9f2444365615c24d620b919a659;hp=4baab5612efefafdacab08fe8a74eb72e8352cda;hb=e3fb62f59b7cf93c818f382a62c37eea2d1b4f74;hpb=5b3b1f44edb49bdb8e92c445ad5f3e60f6c033d9 diff --git a/notmuch-search.c b/notmuch-search.c index 4baab561..d504051c 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -423,6 +423,9 @@ notmuch_search_command (void *ctx, int argc, char *argv[]) output_t output = OUTPUT_SUMMARY; int offset = 0; int limit = -1; /* unlimited */ + const char **search_exclude_tags; + size_t search_exclude_tags_length; + unsigned int i; enum { NOTMUCH_FORMAT_JSON, NOTMUCH_FORMAT_TEXT } format_sel = NOTMUCH_FORMAT_TEXT; @@ -490,6 +493,11 @@ notmuch_search_command (void *ctx, int argc, char *argv[]) notmuch_query_set_sort (query, sort); + search_exclude_tags = notmuch_config_get_search_exclude_tags + (config, &search_exclude_tags_length); + for (i = 0; i < search_exclude_tags_length; i++) + notmuch_query_add_tag_exclude (query, search_exclude_tags[i]); + switch (output) { default: case OUTPUT_SUMMARY: