From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 39E5F6DE28CE for ; Wed, 21 Jun 2017 14:40:10 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.052 X-Spam-Level: X-Spam-Status: No, score=-0.052 tagged_above=-999 required=5 tests=[AWL=-0.052] 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 Q4sGVKTycR4h for ; Wed, 21 Jun 2017 14:40:08 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTP id 3F5F46DE28C9 for ; Wed, 21 Jun 2017 14:40:08 -0700 (PDT) Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 13369F999; Wed, 21 Jun 2017 17:40:03 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 0DA3C1FD54; Wed, 21 Jun 2017 17:30:58 -0400 (EDT) From: Daniel Kahn Gillmor To: Matt Armstrong , Gaute Hope , David Bremner , notmuch@notmuchmail.org, Xu Wang Subject: Re: find threads where I and Jian participated but not Dave In-Reply-To: References: <87bmprtqgo.fsf@tethera.net> <87fuf1nnl5.fsf@fifthhorseman.net> <8737b1rojw.fsf@tethera.net> <1497594312.ahjx44w937.astroid@strange.none> Date: Wed, 21 Jun 2017 17:30:54 -0400 Message-ID: <87r2ydgh9t.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Wed, 21 Jun 2017 21:40:10 -0000 --=-=-= Content-Type: text/plain On Wed 2017-06-21 13:04:53 -0700, Matt Armstrong wrote: > For what it is worth, I've found this idea from Daniel intriguing and > pretty useful in practice: > > "show me threads in which i've participated, where there are some > messages flagged with 'inbox'" > > I implement it like this in my post-new hook: > > # All messages in threads in which I participate get tag:participated > notmuch search --output=threads from:marmstrong | \ > sed -e 's,^,+participated -- ,' | \ > notmuch tag --batch cool, thx for the suggestion. the "notmuch search" part of the pipeline alone takes ~19s (wall time, and actual CPU time) for me though :/ It returns 30504 threads! how many threads do you get? you're effectively re-tagging every single message in every participated thread every time you run "notmuch new", right? > On my database the query takes about two seconds to run, and lets me to > searches like "tag:inbox and tag:participated". The set of threads > found is typically a subset of "tag:inbox and to:marmstrong", but not > always, and I now have two canned "inbox" searches: > > "participated" -> "tag:inbox and tag:participated" > "me" -> "tag:inbox and to:marmstrong and not tag:participated" > > The "me" search tends to be new stuff, bot-generated notifications, and > such. The "participated" is typically active conversations and stuff > I've already engaged with, or initiated myself. I like this outcome! I'm just looking for a way to do it that wouldn't cost me so many cycles -- Maybe if i only run "notmuch new" once a day :) --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOCdgUepHf6PklTkyFJitxsGSMjcFAllK5Y4ACgkQFJitxsGS MjcFsQ/+IRhpMwsm4dQgvvJv1Q9nVEQ4oC6j3H9f/ouRa4isCY/kpO8+ODrDcAfB xZJtkcAsIPdHmgpySLcuA+Wb7Sdju/Jkd3bMdgFnUQtN2j17z++yFsDn6xLQz/bi BuQPXNjidlQW/ICui9wYry/quo2FzJ15ogy1pyhc0KXP8g5KeajHGiMkXSZySbDg e4RCfDxc0vnjFVLupyMzzGmwka+k46jyyCQ6nmqxzJOWOfyomKOtBNirtDT7kP51 KXZ2cfw2k34/IqGwiBBaREJADJ7smYDZ6v9yx6pBGFj04tmJgS+pORYB2zoTPCo0 fEDShUvILNyl/WSYPe8Cs85wpWiLD+Dxqv1XhZZOgrlZDP+I3K1Jvg2CoT1HQ7Xq I3U2ssR5gkd8ZNWRxSeX75pf6LCuEeIjsR4u5uMHBv3RkYPzRIn4RfgFOBILzFhU I6GOmMuc0qYbvjXAG1t977d/5mS/l4tvKIieTk5CgXCaXSDqtMOfI6pVgtX7KO2A V0I96EQnvp6gfz6KiS7LgL8EzzIRT6ylPNyY+F38r2wkZkPLTLT55tLJyjnOnzQ/ 9gz1h/MdV26wpylPgE/a4oEszO4zQbXRRMufLOLygoFzgqmqvlKLey+BArmTtUk/ WjRF6W+ZDgYIEiznWOCLgBRxj26SvLYgpSKRUW2zXT/z3bEZtxM= =9NHV -----END PGP SIGNATURE----- --=-=-=--