From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CHO1FbaOaGW1jQAAauVa8A:P1 (envelope-from ) for ; Thu, 30 Nov 2023 14:31:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CHO1FbaOaGW1jQAAauVa8A (envelope-from ) for ; Thu, 30 Nov 2023 14:31:34 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D929B421C6 for ; Thu, 30 Nov 2023 14:31:33 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701351094; a=rsa-sha256; cv=none; b=SV83K+CHhw0wTUUmZZbi7dU8BU9zHszmHYwW7o5I7k4uyShousUSAPOYKbOpNnoqDKi7w1 PzyBHWh2Hee6NysoBgYCOnhOrKGsJoeHypmZn/6s8jsTtZsEFkOgJ80zE5wHWetWnWy595 kJN6C6n9SNGw1wbulEcs8v0qffC3SffA20zZi8o7+9e03rwcHFGkV58DHDG66KBFLMp51W yiFPknVpD6orXHuOE0zujciiMQU5dAnh2WwP/gh1AQo/d4sfa0gIUi9XrbRBiGtDcfHVlh /NYBUxLkb+EQott3hO6HiIFUMr0FlFImZ0gTOW5s7fgrVfPVX7+Q3mOFRid2cQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701351094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=scY+f8LC3khaRw6MEk/8OLJaWnqNsTFfkPIdcVjXbV8=; b=KnKpZPu9IPPSgZqWUF901gGhH2/le9xIE9yTqw0O8/0+oDMFUQsUQuM3z1kSc+ocLi0vId d6tDGDBBSbWA7CcZw73ChSX9aO2Ge9IXgtbIZCAAW+fY6LnWsEx7GBokGiJGeQeS6VqYqq 2Uifz9c5ZzEVIySwFuQbx/LipX7vAhkYory58n/82Uet8yGZkbY42TG38zdCTsnFnZ8NVL pvxN5vpvF/SPqHNkhaUamhSzIM0aC8+3m12e57bqCCfIR5yMgFRV60FUk2I/3Xvn/YNxaM uWGl0Doeb+uTmLaETxbo3Jmcm1FNuEi1TaupuyIdnoB4jLya8R+Dtg81ADGjSg== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2E28360A3D; Thu, 30 Nov 2023 13:31:24 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id 692A760A1A for ; Thu, 30 Nov 2023 13:31:21 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-185-147.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.185.147]) by phubs.tethera.net (Postfix) with ESMTPS id AC81F180066; Thu, 30 Nov 2023 09:31:19 -0400 (AST) Received: (nullmailer pid 233462 invoked by uid 1000); Thu, 30 Nov 2023 13:31:19 -0000 From: David Bremner To: Michael J Gruber , io Subject: Re: Advanced search with wildcard using notmuch for mutt In-Reply-To: References: Date: Thu, 30 Nov 2023 09:31:19 -0400 Message-ID: <87jzpzqsew.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: UJN3P4HCLYVD27UNWNFFNHR7SDANXURF X-Message-ID-Hash: UJN3P4HCLYVD27UNWNFFNHR7SDANXURF X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 1.53 X-Spam-Score: 1.53 X-Migadu-Queue-Id: D929B421C6 X-TUID: 0Rnov5c6udoN Michael J Gruber writes: > Using xapian commands, one could extract all stems and grep those for a > term which one "remembers partially" (often happened to me), and then feed > that into notmuch. Might be worthwhile scripting or even integrating into > notmuch (sexp?). The words are stored unstemmed as well, so in principle we could extract those and do some kind of fuzzy search on them to construct queries. This is what notmuch already does for regex searches on fields other than from, subject, and mid. The reason this is not too attractive for the message body is that it works on a per word basis, and most uses of regex (although not the one under discussion) involve matching multiple words. Currently Xapian only supports trailing wildcards (which would not help here), but we could do that for body words. It just doesn't (or hasn't) seemed like such a common use case. Alas, none of the forward looking discussion really helps the original poster.