Re: notmuch and "mute" -- useful to anyone?

Subject: Re: notmuch and "mute" -- useful to anyone?

Date: Wed, 03 Aug 2016 07:32:21 +0900

To: Matt Armstrong, notmuch@notmuchmail.org

Cc:

From: David Bremner


Matt Armstrong <marmstrong@google.com> writes:

> Is anyone else interested in Gmail-like "mute" support in notmuch.el?
> If so, I can think about polishing the below off and adding it to
> notmuch.
>
> I've managed to implement Gmail's "mute" in notmuch as follows in my
> notmuch-post-new:
>
> ----------------------------------------------------------------------
> # Unmute all threads with new messages sent to me.
> notmuch search --output=threads tag:new AND tag:me | \
>   xargs --no-run-if-empty notmuch tag -muted --
>
> # Remove all muted threads from the inbox and mark every message in them
> # muted.  Ideally this would be atomic with the above.
> notmuch search --output=threads tag:muted | \
>   xargs --no-run-if-empty notmuch tag -inbox +muted --
> ----------------------------------------------------------------------

See also the example of https://notmuchmail.org/excluding/

This kind of thing is what message exclusion is invented for.

I guess you have to adjust to get precisely the semantics you want where
messages specifically to you are not muted.

By the way, also in git master you can used saved queries instead of
tag:me. So

notmuch config query.me "to:matt@gmail.com or to matt@sekritaddress.net"

then use e.g. "tag:muted and query:me" in your example.

That again requires xapian 1.3+

d

Thread: