From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id t5lKE/teyGFOhgAAgWs5BA (envelope-from ) for ; Sun, 26 Dec 2021 13:24:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qC5wDvteyGFbAAEAauVa8A (envelope-from ) for ; Sun, 26 Dec 2021 13:24:27 +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) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C11E8354BF for ; Sun, 26 Dec 2021 13:24:26 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D50A45F722; Sun, 26 Dec 2021 12:24:22 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id DAC5F5F527 for ; Sun, 26 Dec 2021 12:24:18 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 274D35FC42; Sun, 26 Dec 2021 07:24:18 -0500 (EST) Received: (nullmailer pid 1993995 invoked by uid 1000); Sun, 26 Dec 2021 12:24:16 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: add known broken test for ignoring non-toplevel .notmuch Date: Sun, 26 Dec 2021 08:24:09 -0400 Message-Id: <20211226122410.1993982-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: ZJCADI6F6ZLPAHKRXHGAVXI7XLOWIX36 X-Message-ID-Hash: ZJCADI6F6ZLPAHKRXHGAVXI7XLOWIX36 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=1640521467; 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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=IjjHK4K4AIEvGdUvk8BXuYN4NrjhwhGprzZ92zLF19o=; b=kDht7IraMIn+LvxEgdE3C5paRiILFlRVZ6A4EFSpcL6JL9lSKzRmEX+0Ciu4+IgjF5pKok EZXiymsd1Q0Z67sqzVHLqsPOcqLq7lkId+ad7GuSiH7FWv9nPbGmjA1AS62v8chADwvf3k VIWpfCdtYL3WcGNfqLmCBurdB2jzA6dSY0D7Bu69maIHIcOszLYMqc0bEWdrvKaRQooKPo AhgwguC5M8epp10mjlDlP+2sLZK9gbwK+VA925Q888frx4qWGkcF86V17l48Rwg+Vn8246 nCsXAO3Yu86Bj+H886meZxpaxWE4BHaTTzz/s51lqpYMMM2mc+uQllvQc6xVYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640521467; a=rsa-sha256; cv=none; b=GglHOmfs7uoAS7pw1+ikIT1Q0fy10WcjRjrPvu/fQ0vNKBpji2I1ZlkZgwDv7+UnBq8adR AUbEskYvZ4oqK23FXOOrt7E87FOuxrZzPOrvzgaRBsc8rXKpUvdKyhtpVi9fdrRKN6GG2N sd2r8D3/CQb7GqiU2/sBjk85Ecdvl6cZfSsWneEKMfQ38sQGHPATGFXPUjJTZFySbL9i3w 460rqernJIg17OrB8aV9vOh5iERUU95L0qFh+/q5aTNoPWcAYRqyM86SEyws6sSn6n8YxN S9A6wEGNAPJwWRzMDurN2aX6UJ+5uc9U/XMUyxNR8ivuTbOhtSoycTS5vpxsdw== 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: -1.24 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: C11E8354BF X-Spam-Score: -1.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8F0DIZy/48wL In [1] Rob observed that notmuch new ignored directories called .notmuch everywhere in the tree, where they should only (and now, with split configs, at most) be ignored at the top level. Add a test to demonstrate the problem. [1]: id:87mwhifu9a.fsf@trouble.defaultvalue.org --- test/T050-new.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index 7ea127d3..db13090b 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -351,6 +351,17 @@ test_expect_code 1 "NOTMUCH_NEW --debug 2>&1" notmuch config set new.tags $OLDCONFIG +test_begin_subtest ".notmuch only ignored at top level" +test_subtest_known_broken +generate_message '[dir]=foo/bar/.notmuch/cur' '[subject]="Do not ignore, very important"' +NOTMUCH_NEW > OUTPUT +notmuch search subject:Do-not-ignore | notmuch_search_sanitize >> OUTPUT +cat < EXPECTED +Added 1 new message to the database. +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Do not ignore, very important (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "RFC822 group names are indexed" test_subtest_known_broken generate_message [to]="undisclosed-recipients:" -- 2.34.1