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 AFE516DE3FFB for ; Sun, 25 Jun 2017 09:15:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 8sZOWsr2v6Fd for ; Sun, 25 Jun 2017 09:15:21 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTP id C813B6DE3E90 for ; Sun, 25 Jun 2017 09:15:20 -0700 (PDT) Received: from fifthhorseman.net (static-70-20-196-80.phil.east.verizon.net [70.20.196.80]) by che.mayfirst.org (Postfix) with ESMTPSA id 21AF1F999; Sun, 25 Jun 2017 12:15:14 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 6924D21446; Sun, 25 Jun 2017 11:46:24 -0400 (EDT) From: Daniel Kahn Gillmor To: Matt Armstrong , Gaute Hope , David Bremner , notmuch@notmuchmail.org, Xu Wang Subject: finding incoming messages in threads in which i've participated [was: 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> <87r2ydgh9t.fsf@fifthhorseman.net> <1498111587.9x086zp6wn.astroid@strange.none> <1498112439.apimm1pnum.astroid@strange.none> Date: Sun, 25 Jun 2017 11:46:21 -0400 Message-ID: <87efu8t6ia.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: Sun, 25 Jun 2017 16:15:21 -0000 --=-=-= Content-Type: text/plain Hey all-- I really appreciate the thought and experimentation and research that's gone into this thread! On Thu 2017-06-22 17:00:58 -0700, Matt Armstrong wrote: > # All threads in which I participate get tag:participated > # 1) Find all threads with a message tagged new > # (finding all 'today' messages helps during testing, > # but isn't necessary) > # 2) Run through "xargs -s 2048 echo" to to group threads > # lines of about 2K in size. > # 3) For each line (2) produces, narrow the threads to > # those containing a message from me. > # 4) For each such thread, tag every message with +participated. > notmuch search --output=threads tag:new OR date:today | \ > xargs -s 2048 echo | \ > xargs -I '{}' notmuch search \ > --output=threads from:marmstrong AND \( '{}' \) | \ > sed -e 's,^,+participated -- ,' | \ > notmuch tag --batch This makes sense to me, modulo the split into 2048-octet lines (magic numbers make me nervous, though i think i understand why you've included it). That said, i've been trying to think lately about how to make notmuch a tool that's usable by normal humans, who probably won't want to understand all the moving pieces here. I don't want yet another MUA that requires you to edit a turing-complete config file to get useful functionality -- we already have mutt for that :) Is there a way that we can push this idea/functionality further into the core of notmuch in a way that makes it easier to use? For example, would it make sense to have "notmuch new" (and "notmuch insert") do "thread-based propagation" of specific tags? for example, consider the following (i've just made up the config options): notmuch config set new.from_self_tags participated notmuch config set new.propagate_thread_tags participated the idea is that "new.from_self_tags" would be applied by "notmuch new" or "notmuch insert" if the message was explicitly from: user.primary_email or user.other_email. and additionally, if a message was inserted into a thread which has any of the new.propagated_thread_tags applied, the new message would also get those tags. What do y'all think? --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOCdgUepHf6PklTkyFJitxsGSMjcFAllP2s0ACgkQFJitxsGS MjfrOA/9GmChwH9lAY9itNZCaZybZcF9c/CpeTPZlC2pvNKBG8yzRL6446uxaJbK N7rFNMwiPa9Wxet75wtsqidD1x2AfCHwFWU6HN7Htq9VtC/TRoXhYnIiwQ8ye+HS cyyvYrnxdVnCbYCidWMteIdZsW+Gq/R51Q/uOu0PUCgBrdq8IcR0KBKI1KEfmpni 6zYtOcjharsUkTby0ckRDDxQ/B8k4W2MamPHRNCoby/TVHP8XzQ4cRw2/Wxd41xa XBrIWAv0gxr0N+41NXkfH8vqIfH8Rlbewr1khUyg9xpwKYiYBYvLOOC6H7Zbjlj7 XwxpAOcNawRb00bEGT+x2UFpn+62G7nIh3UvaNsGNbxjPMU0NkWy+vtCzzeiWgtK QZxzTNOjAZjcHfZMjqRObyDO2YJ0WUJpj86IGUKY4CmRkM/85HXlcZWLfwOwRiAU lhMIRRcGwManMyWMVu4RBYeaJ8FRvCZG/tpjPTgYTktrlPKGP7SY7r8jJZ2/qunC JrlVAkWvcUKsaveSbep5GrAU+HfPrgZ7LP4AYHm4nvgwgFWneLi0QEDCXcfR1QZQ 9jpbjjjIgmuB5pVdl+qP74gLbqbnVXGuaq1BmcYtnKuoOn4slmY0YpIkfZKyn/hL rOE79bv6bwZmOEh5DsKpF7WQSx3IQ9U2WqAZDH3YHTyl/kFcCtI= =Y2iV -----END PGP SIGNATURE----- --=-=-=--