X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-count.c;h=46b76ae1d13b9340da505ff2b8471112f50d6c87;hb=7a1beb9e7c7fdf8971a60d810ae24e58c2d09673;hp=53645070080bba3e93356cf277fd926673e658f9;hpb=99c318cae464159ca5b4ec86643ccf3c8b98c1b3;p=notmuch diff --git a/notmuch-count.c b/notmuch-count.c index 53645070..46b76ae1 100644 --- a/notmuch-count.c +++ b/notmuch-count.c @@ -88,6 +88,8 @@ notmuch_count_command (void *ctx, int argc, char *argv[]) notmuch_query_add_tag_exclude (query, search_exclude_tags[i]); } + notmuch_query_set_omit_excluded_messages (query, TRUE); + switch (output) { case OUTPUT_MESSAGES: printf ("%u\n", notmuch_query_count_messages (query));