Re: excluded tags not excluded from threads

Subject: Re: excluded tags not excluded from threads

Date: Mon, 12 Jan 2026 09:24:55 +0900

To: Al Haji-Ali, notmuch@notmuchmail.org

Cc:

From: David Bremner


Al Haji-Ali <abdo.haji.ali@gmail.com> writes:

> In my config I have
>
> [search]
> exclude_tags=deleted
>
> After upgrading from notmuch 0.38.2 to 0.39, and while I was updating my code to the new notmuch-search interface, I noticed that threads containing deleted message (for example deleted drafts which accumulate as one is editing/saving drafts) return message counts which included these deleted messages as well as the tag list of the thread that includes the "deleted" tag. For example
>
> I get:
>
>  0 mins. ago [1/10]   Al Haji-Ali          excluded tags not excluded from threads (draft new deleted)
>
> I admit that I am not sure if this was always the behaviour, but in any case, I would like to suggest that such messages should be excluded from the thread as well so that only message without excluded tags are included in the search summary.
>

For what it's worth, it has always been the behaviour.  Your suggestion
is reasonable; the one time I investigated it seemed like a challenge to
get the indentation right (since in particular the children of an
excluded message may not be excluded), but maybe it just requires some
more patient investigation.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: