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 ULvvCeY45GGceQAAgWs5BA (envelope-from ) for ; Sun, 16 Jan 2022 16:25:26 +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 OCm1AuY45GHxEQEAG6o9tA (envelope-from ) for ; Sun, 16 Jan 2022 16:25:26 +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 C6F0F1A9D1 for ; Sun, 16 Jan 2022 16:25:25 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D4BE85F6B9; Sun, 16 Jan 2022 15:25:21 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 35CF75F468 for ; Sun, 16 Jan 2022 15:25:18 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 0B8935FC01; Sun, 16 Jan 2022 10:25:17 -0500 (EST) Received: (nullmailer pid 2178806 invoked by uid 1000); Sun, 16 Jan 2022 15:25:16 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] test: known broken test for top level .notmuch in split configs Date: Sun, 16 Jan 2022 11:25:10 -0400 Message-Id: <20220116152510.2178761-1-david@tethera.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: S42XGBACCHAQHGN2CEGQNBHQ5ILV3OAV X-Message-ID-Hash: S42XGBACCHAQHGN2CEGQNBHQ5ILV3OAV 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=1642346725; 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=gEBCWqV70g6XjDR3mHp4jLlmhBg1tIaX6pbatz0gwFc=; b=q9Z+VuPa3myyd5MxAs9ZDEl4Bz/DdnSSxEnoE94p7HSMafeZJor3QOvWJp8lLceu8/Znup 3I7mRU2xj6Ak78W03/iHNxvdbqxlx7Ooa2gk4mLcrxtm0jfprHQEp4DMcDtCFvtDBg5vCA Ir1+gd5SxGQy4o9MOT/oGt7hQ7NLhgPzlhao7O1eEEZ3MwQZc420Fgcg0iXnXGOgS6K0OX CoW82kNqFmYmXLXrcR0Xd7fAEAVh2MB/w3CbJQveC3Q8EQC/dB+OQlXem4Sk0DgenRibMO 55+h0ienkV1fEtWKIxPloTOIhG0PXVEA62Ga0tQWtPVt3nbrvIvlOqRolCNctg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642346725; a=rsa-sha256; cv=none; b=m/WwyIIbpmRJIX1ThtBK+yXgDyKH2zxErVT54SncyuQ5mTy3a/8OugZ8OcBC10D9pXLG0R 3GPsOywIQvnLPogoWaJRb9SH0DmH94qSDBwmeKLh5KcxzhSF4I24jHsoo+b0/8tJUf75jR RoqZ9ty1RZGbr7YF3MkHab1irLdlQLPtwNaBSf/yYId+wvHRnSpSYbPMlXGcKhKlorcqkJ Od3CR5EiIxYqryerazSUpYbz+c8v1GQ9x369A5luu2IkCd2tzA4Tu4kX1Ver9GV+oCgnYS /FeqDHKOWJonTxkUI82AJST4rjomqbRQ286r9Bti8bZkuqV52mPGP4Yop/TSiw== 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.35 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: C6F0F1A9D1 X-Spam-Score: -1.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: zUh8kmqV09Cm In split configurations there is no special significance to a top level directory called .notmuch in the mail root. Users should therefore be able to have mail stored underneath it. --- My only worry was residual .notmuch directories after people switch from legacy layout to split, but I tested by copying .notmuch to .foobar and running notmuch new. It cleverly deduced that none of the xapian database files were mail files, so this seems fine to me. test/T055-path-config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index 1df240dd..40009d09 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -316,6 +316,17 @@ db=Database(config=Database.CONFIG.SEARCH) m=db.find('20091117232137.GA7669@griffis1.net') to=m.header('To') print(to) +EOF + test_expect_equal_file EXPECTED OUTPUT + + test_begin_subtest ".notmuch not ignored in split config ($config)" + test_subtest_known_broken + generate_message '[dir]=.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 ;; -- 2.34.1