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 ED1D16DE18C3 for ; Wed, 21 Jun 2017 23:22:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.091 X-Spam-Level: X-Spam-Status: No, score=-0.091 tagged_above=-999 required=5 tests=[AWL=-0.071, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-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 evu-lY1t2Bm6 for ; Wed, 21 Jun 2017 23:22:26 -0700 (PDT) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by arlo.cworth.org (Postfix) with ESMTPS id A243F6DE111A for ; Wed, 21 Jun 2017 23:22:25 -0700 (PDT) Received: by mail-lf0-f43.google.com with SMTP id p189so3305863lfe.2 for ; Wed, 21 Jun 2017 23:22:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=date:from:subject:to:references:in-reply-to:user-agent:message-id :mime-version; bh=RK62WwQCR8XL3wi63eA0gs0JHvkwIgbyRedKBuyEpec=; b=Uu9EiPKZuvZumlcJ1YUCJ7myR8H6SXznK68zKdg9HD184ORMeSnc/90xInd8/63RZ6 7TWYKtaej8E1RpKnUhozCIs36ZkKhJSG6+dY+gw2lyi4AS2uKheSm4X9uDhHTuahrQIE 8nWdkKIn3eQTgCbnXY+85tYHG8TDhK2Gbb1qmjlN6OG6FJ9o66El4Z/BhDGRVpBUyKOR uQ9j8L09O6wn8vYqv+lz/i0px/nnNI7BPVi6xLJUH6dFdaa0tSoJSTaRi9j99NDmVRJc hs5DI8nFOScZbNy6OA1Pu7ReMfPzMjZ8uu5v8EEIKCpYgLFyZtsogi1xDjRCpQj59sW0 pdLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:references:in-reply-to :user-agent:message-id:mime-version; bh=RK62WwQCR8XL3wi63eA0gs0JHvkwIgbyRedKBuyEpec=; b=Rm0kwxUBhuupZIRvit/j1Q0v9J45+a+0ecH9WTlPiiY3rNIIBsewiKOMHmkIo+2Y9i LL48ygeA1RuSvQNZR20oTWkV75DXmdl1VdmPBf1ev0Klrg5A7rvwzoe4+VS6r/oSlzc2 MUvK3S93sUu1i/YfMpBVey1eVL7HKjdEI06RJS2vG4see84JVnSh56b2t6yxFspNXk7g QqNGbzbd8Q3qaoj13hoxV5Ydg2QCxogFExNPA0SNbFcffJtJFub2/hnxyXZ24PKvHmZw HwEl5hmuV3ETBdXUZqmYBF6357Yui7zF12yRWXOzAk0I18JXn0sFmuAplsagSOPIABug q9Iw== X-Gm-Message-State: AKS2vOxFwlxYRLBY/1MpyqQ0++JzKjIbYywb+dw/dimQpBsHpGjBlEAu hNYMqCPWyfYnhun7 X-Received: by 10.25.235.69 with SMTP id j66mr355361lfh.141.1498112543911; Wed, 21 Jun 2017 23:22:23 -0700 (PDT) Received: from localhost (cm-84.215.128.252.getinternet.no. [84.215.128.252]) by smtp.gmail.com with ESMTPSA id h83sm171851lji.10.2017.06.21.23.22.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Jun 2017 23:22:23 -0700 (PDT) Date: Thu, 22 Jun 2017 06:22:19 +0000 From: Gaute Hope Subject: Re: find threads where I and Jian participated but not Dave To: David Bremner , Daniel Kahn Gillmor , Matt Armstrong , notmuch@notmuchmail.org, Xu Wang 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> In-Reply-To: <1498111587.9x086zp6wn.astroid@strange.none> User-Agent: astroid/v0.9.1-33-g3cd64473 (https://github.com/astroidmail/astroid) Message-Id: <1498112439.apimm1pnum.astroid@strange.none> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="=-UQjd6/TVmnmGYs60MCxy" 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, 22 Jun 2017 06:22:27 -0000 --=-UQjd6/TVmnmGYs60MCxy Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Gaute Hope writes on juni 22, 2017 8:08: > Daniel Kahn Gillmor writes on juni 21, 2017 23:30: >> 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:participat= ed >>> notmuch search --output=3Dthreads from:marmstrong | \ >>> sed -e 's,^,+participated -- ,' | \ >>> notmuch tag --batch >>=20 >> cool, thx for the suggestion. >>=20 >> 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? >=20 > Is there any reason why you do not filter on a tag 'new' as well? >=20 > notmuch search --output=3Dthreads from:marmstrong and tag:new | \ > sed -e 's,^,+participated -- ,' | \ > notmuch tag --batch >=20 Nevermind, I get it - it might be possible to add a temporary tag=20 new-tag to the whole thread first and not just new messages. That might=20 be faster. As long as all sent messages get the new tag as well. = --=-UQjd6/TVmnmGYs60MCxy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEwTgvpR+zk9CtKEuvmCen6KB0kCMFAllLYhsACgkQmCen6KB0 kCMhyA/+LzrDPmJVc+RIdJQ0VbzUW7RShm3itt4ovrLJkDH5te82Q2wno/uuBRXu uK3mhzRIIcRjtAfjSMynB5FwfW9G2F2qClZTJBLApWNIeCXvGyUsbJ5uyVcHA5Pk t66hxJ/7cu5ifWU2o4Ebr3mBRZLG1FBfL3Smgu9xy31la41F/AVTry5QoPNlg2CJ Xp6tO8xjXlnbgFWkRjaQD1dD0YQ3rl2K8rcmGGNRlN94wMAnZxt3rhqw3BKuQEbd QSSXtFS/Onh7E+1TmstaFPlUCUsZE2lD8qzc5BFOj2iJkX2LwAqj3p7YFgUp7yLy W5s8opwfyXsGNE+BLQBqBY5GgTRhKjgb1bw/KzcnLsjRRoOql6vBDc6duP7tpwcZ ZOoA0HkqNtXcR6L9JOrJ7n9I6vsIkNzZj+3neqggypmng50oyZ+YskcTN41+RkPa UPsHM9ivV5XmOaXhGwOo01657g7W5VgPMnrzppaTC1xXRmU9BHTMZ+xOoJP17aXr 41k0qKbGu+UfPgL+/1+k1WT8FsilsS8A15sv7OseYTFnBJ+EjfiFgQLrBYlYxUTV KGlv4s2Lj8reYMjL/juGyFDVZ1qR56idVQcc/N+rLOsTSdqXOqiJYbfvVxGciMA5 qSDlRee2r+SmeY1wclIciikcUfiw6deyskfldcCJTuP3mT2ZT84= =44Uh -----END PGP SIGNATURE----- --=-UQjd6/TVmnmGYs60MCxy--