Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 967316DE01F9 for ; Tue, 2 Aug 2016 15:32:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[AWL=0.000, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X6FTtcdmUy17 for ; Tue, 2 Aug 2016 15:32:26 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 863216DE00BD for ; Tue, 2 Aug 2016 15:32:26 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1bUiEs-0004NP-KJ; Tue, 02 Aug 2016 18:32:42 -0400 Received: (nullmailer pid 27556 invoked by uid 1000); Tue, 02 Aug 2016 22:32:21 -0000 From: David Bremner To: Matt Armstrong , notmuch@notmuchmail.org Subject: Re: notmuch and "mute" -- useful to anyone? In-Reply-To: References: User-Agent: Notmuch/0.22.1+61~g2ce0f13 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Wed, 03 Aug 2016 07:32:21 +0900 Message-ID: <87invivm2y.fsf@maritornes.cs.unb.ca> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2016 22:32:34 -0000 Matt Armstrong 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