--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 967316DE01F9\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Aug 2016 15:32:34 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.011\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[AWL=0.000,\r
+ SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id X6FTtcdmUy17 for <notmuch@notmuchmail.org>;\r
+ Tue, 2 Aug 2016 15:32:26 -0700 (PDT)\r
+Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 863216DE00BD\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Aug 2016 15:32:26 -0700 (PDT)\r
+Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1bUiEs-0004NP-KJ; Tue, 02 Aug 2016 18:32:42 -0400\r
+Received: (nullmailer pid 27556 invoked by uid 1000);\r
+ Tue, 02 Aug 2016 22:32:21 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Matt Armstrong <marmstrong@google.com>, notmuch@notmuchmail.org\r
+Subject: Re: notmuch and "mute" -- useful to anyone?\r
+In-Reply-To: <qf5vazjjciq.fsf@marmstrong-linux.kir.corp.google.com>\r
+References: <qf5vazjjciq.fsf@marmstrong-linux.kir.corp.google.com>\r
+User-Agent: Notmuch/0.22.1+61~g2ce0f13 (https://notmuchmail.org) Emacs/24.5.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 03 Aug 2016 07:32:21 +0900\r
+Message-ID: <87invivm2y.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 02 Aug 2016 22:32:34 -0000\r
+\r
+Matt Armstrong <marmstrong@google.com> writes:\r
+\r
+> Is anyone else interested in Gmail-like "mute" support in notmuch.el?\r
+> If so, I can think about polishing the below off and adding it to\r
+> notmuch.\r
+>\r
+> I've managed to implement Gmail's "mute" in notmuch as follows in my\r
+> notmuch-post-new:\r
+>\r
+> ----------------------------------------------------------------------\r
+> # Unmute all threads with new messages sent to me.\r
+> notmuch search --output=threads tag:new AND tag:me | \\r
+> xargs --no-run-if-empty notmuch tag -muted --\r
+>\r
+> # Remove all muted threads from the inbox and mark every message in them\r
+> # muted. Ideally this would be atomic with the above.\r
+> notmuch search --output=threads tag:muted | \\r
+> xargs --no-run-if-empty notmuch tag -inbox +muted --\r
+> ----------------------------------------------------------------------\r
+\r
+See also the example of https://notmuchmail.org/excluding/\r
+\r
+This kind of thing is what message exclusion is invented for.\r
+\r
+I guess you have to adjust to get precisely the semantics you want where\r
+messages specifically to you are not muted.\r
+\r
+By the way, also in git master you can used saved queries instead of\r
+tag:me. So\r
+\r
+notmuch config query.me "to:matt@gmail.com or to matt@sekritaddress.net"\r
+\r
+then use e.g. "tag:muted and query:me" in your example.\r
+\r
+That again requires xapian 1.3+\r
+\r
+d\r