From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4983 134.134.136.0/24 X-Spam-Status: No, score=-1.1 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9E8DC1F454 for ; Wed, 12 Apr 2023 21:01:40 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=E1ezvZGS; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681333300; x=1712869300; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=rCnDu14BfPWeWkgKpDfuUvQX0uMz7Ulh4+4GP8N9cf0=; b=E1ezvZGS02PxrLa6nvRZ45SWjHKhaHkQY28Ne62QjUdpC/gV4tYYaq/b 5jPnNPclX+8e75DlkAv/INq1OBDC5OJZ3oT472DUDmm+9dDgpfDoNewUz 77G26F74YBX5tuGShGIhWNZbGlGdRJGWCgYU9YquVpma6xVu1s9cBU6KT G5F+nYKyNds6hq/Li6htfLSBZNiUEy1OtlPb2gSTZNaU1RdHIEMaUmFhv 1ebUdIFlwpAxRRJhiT+uLx6W/lepUKx6eQhZCdTuJ+hjDHDumjOk1pJLP 0UIoxIQSeuJRLfIMI46Z8j1BZaddntEFwCFbVLfubc2MtyeLJ1elwUjsu A==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="328135646" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="328135646" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 14:01:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="1018866831" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="1018866831" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga005.fm.intel.com with ESMTP; 12 Apr 2023 14:01:34 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 12 Apr 2023 14:01:34 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 12 Apr 2023 14:01:34 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.46) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 12 Apr 2023 14:01:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F1KqM5d47lAxWxlXbSb7kDXXddF1YcUzbPu6d0U9GvADJD+IRqsCmu/HF9c4EpiEgsUzyAYwZ0gCIlD55T9j6g1IEhXpMZgt1JC0RA+AZiaz38yTp4qv28oMo6VWZ8ZtptHdtW+pnH6TPE0/XdesBEhp6HDG86htp+49WZfRqVarC8zsxQYtDlZFF8M064TcwGZl/arnYm+HrMFhQhaRybcWGeM8CaTBJH2t6UAOijJBipDxHx5rK7PdRNW8A0S/Ga9X+3NqroPuEMw8GzHO2nJZg/yBBoIKIZQN8PLQ/CI5WQyoSl+FqBNI04OkbcZ0MRNHRkYWqBMzh8Eds5d8ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LwewfSyDM619nNEJG0GdYdRuHDQjFPvWprnkAfBizbA=; b=fejial/i4hdAYcjaZcLdVuNF3OVRygH2+g5STIb4J0xhXKd9I/HZjzWq/UwqbbJB9D1iAYko7PU412Xl1iow2HEPyQqeYbwYRnae8Ur0MDid+3DEhoMRIhA4TCCIc7WAxMWqoaQA1eaxj/onH0n6+aBY0W8RoYdffEfF2PnuyCV41YwBZLfWkkbGLwr7hnFVX5fNzvuRtvbEcowiJN2LAK/bq+04rQo66Nf1xjHREbvpXh9xSF7ZoYjfFqtbhAL9sesmhS0S+HCM4wZ+DlQV2Mp5ZmRz8mrTdisiUoB2+vUwjCmcIwzmVj0unNz2Z2N0TGidSo73KAUt7RnK0rAI/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by PH8PR11MB6755.namprd11.prod.outlook.com (2603:10b6:510:1ca::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Wed, 12 Apr 2023 21:01:32 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::6222:859a:41a7:e55b]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::6222:859a:41a7:e55b%2]) with mapi id 15.20.6298.030; Wed, 12 Apr 2023 21:01:32 +0000 Message-ID: Date: Wed, 12 Apr 2023 14:01:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: search by whole thread? Content-Language: en-US To: Eric Wong , Konstantin Ryabitsev CC: References: <20230412000654.M9394@dcvr> <20230412-vividness-expectant-b3c889@meerkat> <20230412201743.M20097@dcvr> From: Jacob Keller In-Reply-To: <20230412201743.M20097@dcvr> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0263.namprd03.prod.outlook.com (2603:10b6:a03:3a0::28) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|PH8PR11MB6755:EE_ X-MS-Office365-Filtering-Correlation-Id: e825a7f1-ab4a-474d-1c63-08db3b9917ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7mspUfk89FC2pY68pWoC3N5c8bReJHxGjNV9B2JG3GcywYRLVnax3ODhIIScC3m6SZpHn4VvNBeY2WZFoIImvhrN29VBiOkRBy0+x5HlW6nWQDNdXUCrcE+JEiCRirX56g2n6AvVgx5zW/J7RAqLkQJecqwywppkEXhurjk44LsE3ysx4sUzfX6L4P7AHkEDdMqFEjnHXrymWNDz+ulzPeN42u89f1QrRxU0Pmp4KLF09kNhZYd+LvwLx1gkiaC3cAi4fRgGsON0cYqF2qxIsgElAlyleJIc4dwWkhXHir5erU76WJ7eQhrn/I4TAuOnGYFaJtDvwOx/5AKsqOWgAhux2bXMGex7Yx8MRQpV9LjNzIdHfsJmFgBCBXb8Vz2DDhgf9wcsuoCgF/fNfqrSOJrbj0awm5Ho8ZSCIC0vKQWCmDcYIEMwRcr2SvIM3ELdzuKllLb/BEra0W6F3HTrJKf0zALz6FcS81kl8GZI/NLM63o9ZC8qD0qAgBm+ciIqx65fOiLgsBTjmoQ3aQx8yXmWhaeasF5FFVNENDdyldRyIfbCFvDOasYfM3QE0kTxFOS9XryKdVdF/UrF0oLN2uJIiW/uFm73dh/ixbtNc6HdDE5Y2rFd5qXnhfFSiVte9+6BQweLYkxAF+ugcB4urjO/Dqo4hPLpCXrXqwfPrE8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(39860400002)(346002)(136003)(366004)(376002)(451199021)(38100700002)(2616005)(478600001)(110136005)(6512007)(966005)(3480700007)(26005)(83380400001)(6506007)(6486002)(82960400001)(41300700001)(66556008)(316002)(4326008)(66476007)(186003)(66946007)(53546011)(31686004)(5660300002)(2906002)(36756003)(31696002)(86362001)(8936002)(8676002)(781001)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?M3NhdHdmTlI1ZXBiYTNSY3UyZUw4bUZ4RFVuK0I2WDNNd3p6OHJCTk84VUxK?= =?utf-8?B?YUtjNm44WCt0ZldmS01va3lmc3BCRU9tdXZ3bFpCN2ExaVdVSDZpQkhNMnNZ?= =?utf-8?B?a1NzUnpIeS9jVGo2SG83YUhQUzB6OGkxcWhSZktDaDlPK0YzM01wTmRKMW1a?= =?utf-8?B?Qnc4RHFhUWpaNDJ6UVhuRHZwNGxTSGVVRE93SVNFWXpVNUYvd0NFWGNueHVO?= =?utf-8?B?a3BtcGcrN3ArZUhjRHZNTDArcmR2ZHlTN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FNQdnBvUXhZdXRmUVBqS0hXUG9QNXk3WjBaR2VaOGhJVThTVThQWmhq?= =?utf-8?B?N2IxUUY0ZnJjQlZjZ21kMDVUSy9rMzAwVFFwdWpXRlRtZ2h1RlYxWmp0OG5o?= =?utf-8?B?R3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e825a7f1-ab4a-474d-1c63-08db3b9917ed X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2023 21:01:32.2395 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k2hqZ2crXd3uYvc6eaOJQeH0sCTmOOxaTGScyT9m/qPfoVAr7JhkM8W/KRejUSqBTg22DhIbEdVXd/1NJ9m0bGbNN2awfaDMob/GRubH40M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR11MB6755 X-OriginatorOrg: intel.com List-Id: On 4/12/2023 1:17 PM, Eric Wong wrote: > Konstantin Ryabitsev wrote: >> On Wed, Apr 12, 2023 at 12:06:53AM +0000, Eric Wong wrote: >>> I think the reason it's rare in MUAs is that it's potentially >>> very expensive. But I think the `thread:{subquery}' feature >>> from notmuch I discussed with Konstantin the other week[1] can >>> do what you want it to do. >>> >>> Keep in mind, notmuch-search-terms(7) states: >>> >>> The performance of such queries can vary wildly. >>> >>> And that's for a private client tool for a single user. >> >> Yes, when I was wondering about that, it was really for the lei side of >> things. I don't really want to run expensive queries on lore (though I'm okay >> if we can turn it off for /all/ or other very large lists). > > I expect relying on timeouts in an external process will be fine > for lore, especially since some expensive queries are already > possible :x > > I suppose ITIMER_REAL is better than RLIMIT_CPU since the former > accounts for I/O time. Xapian makes a lot of small pread > syscalls so I don't see it being stuck in D-state long on SSDs. For what is worth to those watching the thread, I was able to get what I needed via combining [1] with notmuch, and its good enough for my purposes. Being able to do the thread:{} querying directly on lore would be convenient, but doing the search locally is good enough for my purposes. Thanks for the tip on notmuch! -Jake [1]: https://github.com/wkz/notmuch-lore