From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id WO4xLbWGWmBYbQAA0tVLHw (envelope-from ) for ; Wed, 24 Mar 2021 00:24:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +HL4KLWGWmC0dwAAbx9fmQ (envelope-from ) for ; Wed, 24 Mar 2021 00:24:21 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 3091410443 for ; Wed, 24 Mar 2021 01:24:21 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4487326C7C; Tue, 23 Mar 2021 20:24:14 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id ABF3026BF0 for ; Tue, 23 Mar 2021 20:24:10 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 2CB185FA96; Tue, 23 Mar 2021 20:24:08 -0400 (EDT) Received: (nullmailer pid 898679 invoked by uid 1000); Wed, 24 Mar 2021 00:24:07 -0000 From: David Bremner To: Tomi Ollila , David Bremner , notmuch@notmuchmail.org Subject: [PATCH] test: add known broken test for indexing RFC822 group names Date: Tue, 23 Mar 2021 21:24:05 -0300 Message-Id: <20210324002405.898574-1-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: XXUN4KTJH6XD2VHXJ3V25IZNZXONCPAM X-Message-ID-Hash: XXUN4KTJH6XD2VHXJ3V25IZNZXONCPAM 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616545461; 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-unsubscribe:list-subscribe:list-post; bh=P3R9Uy1eVhWPa/GIqjkrEkfIgAlj89jJ1q21WMNepUc=; b=i8aas6efWhzgfHCXyv+M8JQhQTxEeyHC5FZyXZ8m/ird1K9fWgF2wv3IhUGYIINpldVfhz IuJNHKwzUH7sBfJEE2xHW0axdqnLQg2XLEjYDEuajOupF2SAeD/P6HtgkmH5ljgsBRm+fq mJabIacaNs5ark+ZClgKW0vNmDp2CLLEM4iRA0+FRYWKo3+vvYElfUdA2nSfLXvS7a4WcW LPg7H+LRfip3qWluORq56cQEi6dhFjYMTNtyVGyT31qiUDQkzbSIcDZFndqu7v6zRLjDhw 4OdSGtv8bJHbu38ammDnxF8wQ7+Ogwjoqlcyp4V0kyloFzWuoudeaQoGg6/XNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616545461; a=rsa-sha256; cv=none; b=S1xS4QXpvC0LIpUh220A17F0eysdUbeviFQCdqHu7ZRf0f3FGCvuNix748JWm0EEO8VZ3Z r2ySaE2CJzDc8dqSSjfKADAoKdnzGRyywexFCGZGnDKuD2K9G3yypCCEtpJbg2wtrOeDyS uQs2hRYSOkKLY9a6txHBVY5Q7/yyXKDd0OCMxR5H5Xjjfmqh1m/QB4QSDznEU0q1RKonyX vdkbB4AkqU60pOaM27NlXRViBqggzYQIru0tvGqHK56BnxxCeJwBlJYqR4ceKKfYVGJd82 4IbXsiZHyXMXE7DfRQ5hMzUmgSuTpw1cs+/LhJzveYjfreSgMVbUvzMOYo0ETQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.11 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3091410443 X-Spam-Score: -1.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: gC515I9dlXIG Austin Clements diagnosed this indexing problem in [1]. [1]: id:20130711215207.GR2214@mit.edu --- Hi Tomi; Here's a test that demonstrates the bug / missing feature. test/T050-new.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index 2985e24c..109ca4ef 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -339,6 +339,13 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1" notmuch config set new.tags $OLDCONFIG +test_begin_subtest "RFC822 group names are indexed" +test_subtest_known_broken +generate_message [to]="undisclosed-recipients:" +NOTMUCH_NEW > OUTPUT +output=$(notmuch search --output=messages to:undisclosed-recipients) +test_expect_equal "${output}" "${gen_msg_id}" + test_begin_subtest "Long directory names don't cause rescan" test_subtest_known_broken printf -v name 'z%.0s' {1..234} -- 2.30.2