From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 SCLfH6DV/mE7NgAAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 20:53:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KEO4GKDV/mGKGgEAG6o9tA (envelope-from ) for ; Sat, 05 Feb 2022 20:53:04 +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)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 21EBA2E8F1 for ; Sat, 5 Feb 2022 20:53:03 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3ABA25F72D; Sat, 5 Feb 2022 19:52:39 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 422695F71F for ; Sat, 5 Feb 2022 19:52:36 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id C48745FC01; Sat, 5 Feb 2022 14:52:35 -0500 (EST) Received: (nullmailer pid 166337 invoked by uid 1000); Sat, 05 Feb 2022 19:52:28 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/6] test: add known broken test for non-email false positive. Date: Sat, 5 Feb 2022 15:52:11 -0400 Message-Id: <20220205195215.166213-3-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: NTMUWRMQZ4D2HQL4FN5HKCXUUF3JOOY7 X-Message-ID-Hash: NTMUWRMQZ4D2HQL4FN5HKCXUUF3JOOY7 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=1644090783; 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=msgXb1eeZD14LxiCn8xBE1a3kchm27D3CE1VM8lQEF8=; b=LnqPDG0NYCPhNTAd+gtFhOyvtFrTv7A5P5Xu7rzeNgMSP0qWvBX1iZjvZKRe5Zc2/SJLEc yglXHAERqlxo+43tWhmmTZAsCc36pLG3gKVBLSNZ8z+LnDWtOxmBCi4xW/Grdvyp1Ou3WG yx6S3saMNG1eRNbgNsKZw5RbRdrurTHgWrQVn50onmnz+NXcOKpB2f0SqJV+MV0h21FON9 LCHlzjHIKAIPcG1K1Rf46xqiKABZYmh4NwGsDvkrps8q3D4ZVrnWlNsPlZnA0UUlHEJlJR Qwy7aRtVwe0jt7nHzi3J6WeQEhoE7CtiICWRCUMFvRG8URKqZ5VEUIU2gx9Xsw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644090783; a=rsa-sha256; cv=none; b=DIF0CQuuE/eGjRaidRxY03uVYwqOs+SKVxOqtN4W1Ns3EyhwPgJSgD1n74H63uu1MlxKFQ UUytS7nu4Nth95irE0+PPd2mG11Ln4zYBbU29Bd4DANrFbi1GMf7/w1YH4aM50UAnFteTn gt41Dj9khgywmqZt8lYVznqVGMs332V1Ec+tAboV8wmFwlJvC5RpULxWZnehsUDVwAn+3x F34UrCUvvl9z0KGvHIclcEWR457GrrC8D3Q5WUUdF5OuwHKUJUkrqlVCJU4nqZJ/LyrLrw K9XX5ufPVBVwSwVevaKFRTl4mUqop5267r+pkkSJBOehf4nwOMAj/WltMtuH0g== 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 X-Migadu-Spam-Score: -2.34 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 X-Migadu-Queue-Id: 21EBA2E8F1 X-Spam-Score: -2.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: l9qTYvIAQxCy This message should parse fine, but notmuch heuristics are claiming it is not email. It differs from a version that parses fine only in the first line, which triggers the mbox detection code. --- test/T050-new.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index 6791f87c..9ef24f18 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -455,4 +455,12 @@ Date: Fri, 17 Jun 2016 22:14:41 -0400 EOF test_expect_equal_file EXPECTED OUTPUT +add_email_corpus indexing + +test_begin_subtest "id:87k0e9o0pu.fsf@tethera.net is indexed" +test_subtest_known_broken +notmuch new +output=$(notmuch search --output=messages id:87k0e9o0pu.fsf@tethera.net) +test_expect_equal "$output" "id:87k0e9o0pu.fsf@tethera.net" + test_done -- 2.34.1