From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 cGjoIJvV/mE7NgAAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 20:52:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id ECBcHpvV/mEm5QAA9RJhRA (envelope-from ) for ; Sat, 05 Feb 2022 20:52:59 +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)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4C3B52EA30 for ; Sat, 5 Feb 2022 20:52:59 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D339B5F729; Sat, 5 Feb 2022 19:52:38 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 678C35F71C for ; Sat, 5 Feb 2022 19:52:35 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E5D2A5FBD7; Sat, 5 Feb 2022 14:52:34 -0500 (EST) Received: (nullmailer pid 166344 invoked by uid 1000); Sat, 05 Feb 2022 19:52:28 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 4/6] test: add known broken test for index.check_mbox=false Date: Sat, 5 Feb 2022 15:52:13 -0400 Message-Id: <20220205195215.166213-5-david@tethera.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205195215.166213-1-david@tethera.net> References: <20220205195215.166213-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: I3JOTDZH6RJWMDIKZ66HBG2H52Y7QM3Z X-Message-ID-Hash: I3JOTDZH6RJWMDIKZ66HBG2H52Y7QM3Z 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=1644090779; 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=JWmFzD9XZPthprTZ7eI4zsGafwZDTeBwDCymey0LmvQ=; b=pyvY/JdDdPajfsQ351W54YAVQAUEKMQpbABbNv7A49mHKY5d2MV/ZV2z2wlsqcdqM+vaAL 9Xsuh2ruI3jgkQ2jUpSrMylpEzCJqBIirbO9mZMNple1AdsH4byV+kp7c6BqM7AIgKOK6y 1nMTgkS0iWvx0nfqc0vXdIZKOkhPI8dnFcc84TvpWjKFMchsRAWkcKJBCLry9R9xwkQw2j gam/xp2r6klPX9VY+CA56lnEfiIHbnGg0T1gWxp+1b2wU9dcrpxGeXLITtFpNKVJAr//Lj mIlhD+92QoeJr8kDB/xNM/rYBkPD6U5Mt+pzRRMZyPk4qcK5GSoHdayEdCm9vg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644090779; a=rsa-sha256; cv=none; b=EHASTAof8VjN5/Cg71c5O87zo1MpkDhJfplCKHLZI3P2+D9dxmyLOMwssWv3ptf74r4xJ1 9dWrjhcP/ZBA6jysb5VDQTwZEWKk+0BuNVD7wGQFod1cQ2J+BOvfHELHE0r67vjOQEzl7h 5dxP49Nu9CWoa9ELfyYCMibLs6+Lk3jtyyyS9tMABLP9sW2Iq+yAbR7OGrbqaGjCgLKSop HT19c2RACQBqqRgaqrdVFFO4VUqTidWDIREHl80b0DLs8p5ZGwnha1w05gbri3XtY/kuth oT4/LOEDK3Oh49J1a9woIj9S9q+hCYlZfagUUlIDAEaS8DPMkSU42mRR4Mk5AA== 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: -1.33 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: 4C3B52EA30 X-Spam-Score: -1.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: SFG5M02ngX5u This message should only fail to parse because it looks (rightly or wrongly) like a 2 message mbox. --- test/T050-new.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index 9ef24f18..e779bd2f 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -463,4 +463,13 @@ notmuch new output=$(notmuch search --output=messages id:87k0e9o0pu.fsf@tethera.net) test_expect_equal "$output" "id:87k0e9o0pu.fsf@tethera.net" +test_begin_subtest "id:87k0e9o0pu.fsf@tethera.net is indexed with index.check_mbox=false" +test_subtest_known_broken +cp notmuch-config notmuch-config.old +notmuch config set index.check_mbox false +notmuch new +cp notmuch-config.old notmuch-config +output=$(notmuch search --output=messages id:87k0e9o0pu.fsf@tethera.net) +test_expect_equal "$output" "id:87k0e9o0pu.fsf@tethera.net" + test_done -- 2.34.1