From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kMEmBdBBGGI9ZgAAgWs5BA (envelope-from ) for ; Fri, 25 Feb 2022 03:41:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iHTPAdBBGGIwoQAAauVa8A (envelope-from ) for ; Fri, 25 Feb 2022 03:41:20 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 91D89391C7 for ; Fri, 25 Feb 2022 03:41:19 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2EE015F6E7; Fri, 25 Feb 2022 02:41:11 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id A8C435E00C for ; Fri, 25 Feb 2022 02:41:08 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 220585FC01; Thu, 24 Feb 2022 21:41:08 -0500 (EST) Received: (nullmailer pid 1026682 invoked by uid 1000); Fri, 25 Feb 2022 02:41:05 -0000 From: David Bremner To: Sean Whitton , notmuch@notmuchmail.org Subject: [PATCH 1/2] test: known broken tests for bracketed terms in subject Date: Thu, 24 Feb 2022 22:41:02 -0400 Message-Id: <20220225024103.1026629-2-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220225024103.1026629-1-david@tethera.net> References: <87y221txsi.fsf@athena.silentflame.com> <20220225024103.1026629-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: VBTRHQPHSPYLSLCFRROIILPF4ZCCSUYV X-Message-ID-Hash: VBTRHQPHSPYLSLCFRROIILPF4ZCCSUYV X-MailFrom: bremner@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 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645756879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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=Hoen6jyomPxcuDjL/sNJCMleHIuo3Vifcpa+of4XFGM=; b=ONF4PlXYFmKtUnoPaGM+FONVyCGdE1LJGfSuji2yjR4END0KIBfURDUw+KL5AaDiaZOPIz TcAWLtH4eeAC0AiDK70K4mTfxZpomi2VKYTKemucLvZ4PVUlboQXJsh+RkQYjfQsg62sMt 8e6it6ITHq4TG0LKKPaY5PSBmmNOrPKIcDr4i2Ko1QDPQfLxTQDtGC38kDvvdrRGjRgUtK YJwbGZrL/5PSJeMCjkDo0exTSgUoxnkSMsAuC5KNwtTuL2QvYbrT2b+jKkLWVoQ9tCR4Dk NYVbxWKFyyo3Mb2IESJ43ufIVv0NxF2QnrxXJNDuGxnwun9rYyleO7z74qJWQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645756879; a=rsa-sha256; cv=none; b=jvE+zslYD4YMowrgjGdd5efkF9HG6xqydb1Ihc0jP4T8uLiyZ2eou845KbZM7sn8gEKUaL hdc7H2veTinu4MRcAoNadmFzRhS5MxD22BHeWglZdD6Omf6hGgtcKGBCsnuMSfkPWsxGKL ENc0Ggz52NCWKOB6MUwVknnnZiicJb++IrOgvEpp6Yp4xEay3HMLUSMTUiPzoJ05oYtTPG Ycj433rgHa02QzCTdZWFNERY9zhhw4OuaUbuPxWOuLXtWSSUzO/4W2Ws6NLaPbguFfXQkc V6NDmHw0pgbBhAXQHWoHwA9wkGTdz/niXi7PRw0HxGRM3z95YfwAlD+2v9cn+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 91D89391C7 X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: dsLf6JcITb+u The heuristics in the field processor currently incorrectly trigger phrase parsing. --- test/T650-regexp-query.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh index 55dc6c88..4ee6b171 100755 --- a/test/T650-regexp-query.sh +++ b/test/T650-regexp-query.sh @@ -65,6 +65,24 @@ thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; - (inbox unread) EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "bracketed subject search (with dquotes)" +test_subtest_known_broken +notmuch search subject:notmuch and subject:show > EXPECTED +notmuch search 'subject:"(show notmuch)"' > OUTPUT +test_expect_equal_file_nonempty EXPECTED OUTPUT + +test_begin_subtest "bracketed subject search (with dquotes and operator 'or')" +test_subtest_known_broken +notmuch search subject:notmuch or subject:show > EXPECTED +notmuch search 'subject:"(notmuch or show)"' > OUTPUT +test_expect_equal_file_nonempty EXPECTED OUTPUT + +test_begin_subtest "bracketed subject search (with dquotes and operator 'and')" +test_subtest_known_broken +notmuch search subject:notmuch and subject:show > EXPECTED +notmuch search 'subject:"(notmuch and show)"' > OUTPUT +test_expect_equal_file_nonempty EXPECTED OUTPUT + test_begin_subtest "xapian wildcard search for from:" notmuch search --output=messages 'from:cwo*' > OUTPUT test_expect_equal_file cworth.msg-ids OUTPUT -- 2.34.1