X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-count.c;h=46b76ae1d13b9340da505ff2b8471112f50d6c87;hp=53645070080bba3e93356cf277fd926673e658f9;hb=918b80359727de2dd87f26a252de8faee2eff78c;hpb=d845662970c7627a7c6d03d4698119c2263c586f 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));