Re: notmuch-emacs: Add option to set -exclude=false in notmuch search/tree

Subject:Re: notmuch-emacs: Add option to set -exclude=false in notmuch search/tree

Date:Wed, 27 Oct 2021 12:52:27 +0200

To:notmuch@notmuchmail.org

Cc:

From:Gregor Zattler


Hi Mohsin, notmuch users,
* Mohsin Kaleem <mohkale@kisara.moe> [2021-10-25; 12:14]:
> I suggest we add a new option `notmuch-search-exclude`, which is used to
> set the default value of the exclude flag in both notmuch-search and
> notmuch-tree mode, and also to add a new command `notmuch-toggle-exclude`
> which toggles the value of `notmuch-search-exclude` for the current
> search.

in absence of these options I have

query.all=(is:spam OR NOT is:spam) AND (is:deleted OR NOT is:deleted)
search.exclude_tags=deleted;spam;

configured for notmuch.  Therefore I'am able to do searches
like

notmuch count -- 'query:all AND path:spam-old/**'

This also works in notmuch-emacs.


It's usefulness hinges on having only a static set of a few
excluded tags.

Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: