From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kERxN93UyWIkpAAAbAwnHQ (envelope-from ) for ; Sat, 09 Jul 2022 21:19:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wFVYN93UyWJ/MAEA9RJhRA (envelope-from ) for ; Sat, 09 Jul 2022 21:19:57 +0200 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 659232B5DB for ; Sat, 9 Jul 2022 21:19:57 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A43E45F6C5; Sat, 9 Jul 2022 19:19:54 +0000 (UTC) Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) by mail.notmuchmail.org (Postfix) with ESMTPS id 73D2D5F42C for ; Sat, 9 Jul 2022 19:19:51 +0000 (UTC) Received: from c53 (gw1.nor.fi [185.218.193.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: too) by meesny.iki.fi (Postfix) with ESMTPSA id 3705920193; Sat, 9 Jul 2022 22:19:49 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1657394389; 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: in-reply-to:in-reply-to:references:references; bh=EaWNV8uP4TnBtUJwpwK+ZeaLW2pgscYJEgBm/dF9t+4=; b=BAhaLdTpeyj7lUo01vLvM8svaAOq3nQlcY8VO+pT1AJdWLvERTxO9IZVskE6kNi7SlKWde 85fYiKFIival+WriMJn8X+Yyb/XISGE5ZdTwVC81Lr52/1ln5P1b43bmq0ZMbpxBoBiwY6 io/P0fOrca2Ir9vwghq+BLc7jABYiRA= From: Tomi Ollila To: Eric Abrahamsen Subject: quoting: (was: Re: bug#56442: gnus-search-run-search: Hits notmuch command line length limits) In-Reply-To: <87czeeuuz9.fsf@ericabrahamsen.net> References: <875yk850be.fsf__40907.3059143097$1657213041$gmane$org@athena.silentflame.com> <87czeeuuz9.fsf@ericabrahamsen.net> User-Agent: Notmuch/0.36+55~gfb9633d (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1657394389; 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: in-reply-to:in-reply-to:references:references; bh=EaWNV8uP4TnBtUJwpwK+ZeaLW2pgscYJEgBm/dF9t+4=; b=I5opMvMviY0qBxrz+OkZlpv2RtY15yinAtmJBpYA4c463JHVOZFAs9u3XVvmpqg7BBeyYo 9ngIHEcxeF/BCV0VMJuLiZ2uONehpPGgP2IJXfcBDGnGzvH93PSN8Z1nye6Dxhjv3SNkkm FypYNt886QMCkD7B/4R+5ag8GslYtUA= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1657394389; a=rsa-sha256; cv=none; b=dwghP+0/OUNkK8vwjeO8icQZK+WCbgyxNKcTmBoU9DKlNaSBK2JU5sf1tiR9GNiVSSPbE0 ZFirwdwTAHEvT2iNPQmFE1MrtOKxHOHmJ4DUDhoMN/hJo0rC+Kb1FvJauLQ+ZNJCOsP/5p du9uf5akpOfLf9blT7+xhk5oTOIGaC0= Message-ID-Hash: XFI3CYTURNATSAYYBLAAC424MCHZPEQN X-Message-ID-Hash: XFI3CYTURNATSAYYBLAAC424MCHZPEQN X-MailFrom: tomi.ollila@iki.fi 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-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657394397; 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:dkim-signature; bh=lczqY3ATtziftzJ3Wee8A3hA2lPKMPLSnYK+0X9nd6g=; b=UtoehUUFDNxyAiLen75PBUH18TUWcCS1ZcPgP98WgA41/gpJXWFngFKksRYxIg0X1IIM3I 91ZJ+OoSK9K/4WMZcwZecvAPs8308nUrHjTiAhrhzecnr7Urao42eg/fHzveuwDjqsrp64 FEnTzfxTcZ3lDsDFMybAoduUhA6duqxpYr753AgqslGrkDc2Xu5wyiZyOnDrqGNSXoXhOm QNvFo3Iw1X3e4jF3OHLVgXzrtKSxzCndvrLNM3a3i4BXlUHb6ZkssSdN6+k15xBP7F0TKL /7dwEOFjdXcWZX1Es+1x9pEjkmym0i4AsoONY72Q10WoB0af3RRhsp35ehAJcw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1657394397; a=rsa-sha256; cv=fail; b=d4ImRjkCl5HgioNLpQIIQfCYeNoGXTdnmstMwq+bOoV+c/1s1En6jKJo/qnH5r0lXpFJaC jdbEyM9/x10dHGPKpTqIxJKFzdh8JvJfjWxdggkf8yqMtlUxUe2Zb5nIqKZezJWDrXeaTQ xbacHVKzkgw8L1HNHqjEosTU8oDJrtJhFQ72veVTxpgPcbMJYZ5rzziGhqI5FDe7Svl3W3 DmbnN7AuXED4OoBPlJFGSw+OA+SzMXN39bfm8TwM/17dBWLWp1Bhk6gTMVelaKzj+wC8ro o4+rJ6cfY5gXH6+514TTqhWK5PR1IAIdVIUQ17vSTmEZBsDsowd+dv++M4Dm6g== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=BAhaLdTp; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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 X-Migadu-Spam-Score: 2.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=meesny header.b=BAhaLdTp; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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 X-Migadu-Queue-Id: 659232B5DB X-Spam-Score: 2.81 X-Migadu-Scanner: scn1.migadu.com X-TUID: +ut+AYE4ug7W On Sat, Jul 09 2022, Eric Abrahamsen wrote: > > Huh, I tried this a couple months ago with a more complicated query, > like: > > thread:{from:bob or from:jane} > > and I remember notmuch barking at me about spaces or the "or" or > something -- anyway I got the impression that it couldn't accept > multi-part queries inside the "thread:{}" syntax. But looking at your > patch maybe I just needed to quote differently? I am not sure whether this is relevant, but I give a shot... I tried the following queries from command line: $ notmuch search 'thread:"{from:bob or from:jane}"' thread:0000000000000b91 2009-01-20 [6/6] ... thread:00000000000015fa 2008-11-26 [2/2] ... and $ notmuch search 'from:bob or from:jane}': thread:0000000000000b91 2009-01-20 [1/6] ... thread:00000000000015fa 2008-11-26 [1/2] ... The outer '':s protect from shell expansion so what is inside those goes verbatim to notmuch and from there to xapian query parser (IIRC). Former includes all messages in thread where at least one message matched to the query and latter just those messages that match the query. Like Sean mentioned in another message, Xapian converts "" to " in query string (probably something irrelevant in this discussion) the thread:"{...}" syntax binds the whole expression to this thread: prefix (Why {...} is not enough is beyond me ;D) Tomi > > Anyway I'll give this a test this weekend. It would be *very* nice if we > could use this syntax rather than the ugly home-grown one. > > Thanks for the report! > > Eric