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 D29926DE0A77 for ; Thu, 15 Jun 2017 11:04:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.053 X-Spam-Level: X-Spam-Status: No, score=-0.053 tagged_above=-999 required=5 tests=[AWL=-0.053] 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 T-HF3Vp5kRsS for ; Thu, 15 Jun 2017 11:04:31 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTP id BC8BA6DE02DA for ; Thu, 15 Jun 2017 11:04:31 -0700 (PDT) Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id B5537F999; Thu, 15 Jun 2017 14:04:26 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 4C60B20E7C; Thu, 15 Jun 2017 13:54:33 -0400 (EDT) From: Daniel Kahn Gillmor To: David Bremner , Xu Wang , notmuch@notmuchmail.org Subject: Re: find threads where I and Jian participated but not Dave In-Reply-To: <87bmprtqgo.fsf@tethera.net> References: <87bmprtqgo.fsf@tethera.net> Date: Thu, 15 Jun 2017 13:54:30 -0400 Message-ID: <87fuf1nnl5.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: Thu, 15 Jun 2017 18:04:34 -0000 --=-=-= Content-Type: text/plain On Tue 2017-06-13 20:31:19 -0300, David Bremner wrote: > Xu Wang writes: > >> I bump this. Actually more simple than that, how to search for thread >> in which I have participated and Jian has participated? Excluding >> threads in which Dave participated is perhaps more complicated. > > I don't know of an efficient way to do this. You could write a script > something like > > notmuch search --output=threads from:Xu > A > notmuch search --output=threads from:Jian > B > comm -12 A B > > I think the output is sorted, but you might also have to sort A and B that said, it'd be really nice to have something like this in notmuch core. One of my long-standing wishes is to be able to say "show me mails in my inbox from people who have replied to messages i've sent them". This could be re-framed as "show me threads in which i've participated, where there are some messages flagged with 'inbox'". but generating a huge list of all threads in which i've participated, just to be able to do an intersection operation with a (much smaller) list of all threads that have a message with the inbox flag seems like a pretty gross inefficiency. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOCdgUepHf6PklTkyFJitxsGSMjcFAllCydYACgkQFJitxsGS Mjdrjg//Wj3gtk/mCszk31yohoIw9AV6V8zDUl4v0MMtns6X2508OscJ/Fn0Nh6J JnMbtQ1AEb0un15u4QMFlkEyFvw9Evb6mR6ds1/nS/dtnZecPePNG2fAbGmvdeLV PICSM+AHwTfbWCdMtGMOnFbNc8FwdUok0eTzJ3/F4EokECU1E2rB3qxfa5EqfsN7 T9bDppHL0ryJD4a+NQfwwKNthPjtYCbxEnAeiBZtZPA1dhio16d+wm/FVQcrMrKF /nA52HIqtVXYIUjKbYR/67VcKkpt2pNytgpORolV+wpDWuTNz0VbU2gyL/C7yKwr qeRZLVwAEMzL1QgY5Cb/QWKuuJjZm+l3YcWi2JanaIXqQ6vFSBG3+cRGCo0dYDzT Pf22y+uGt2cUJzsbocL8jhKA5koMaX2KQvuMho/LmZFdhEmp8uVpZ9qLSmgVrp0J cNqzr+I1NbGDVBk+EJNSvuynewpuUYlbkIJsEdMOXUfOTChSO6MO35GuG53UD0jR tYqziFeX1/7SEzx9e7+hRSQP7EdoFJM8iNAoTjgiJ8KMlumZMpERjpaev53j0tO4 R3X5q3UQJ58oiX8cMMGzyE3yszH4JeFF0h2xGgDdCctphCBkReUeEqNZgjouunR6 QkYsu8r3HkULvTuNTjMZfBQiVfv/5w+B4Mci7QCHRaBpYJuHdC4= =2OHv -----END PGP SIGNATURE----- --=-=-=--