From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qMObGxUllWC0NgEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 13:31:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8LE3FxUllWBDYgAAB5/wlQ (envelope-from ) for ; Fri, 07 May 2021 11:31:33 +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 D614512418 for ; Fri, 7 May 2021 13:31:32 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3E9C727E10; Fri, 7 May 2021 07:31:11 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 53229271E8 for ; Fri, 7 May 2021 07:31:01 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1C73360016; Fri, 7 May 2021 07:31:01 -0400 (EDT) Received: (nullmailer pid 2687417 invoked by uid 1000); Fri, 07 May 2021 11:30:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 3/9] test: add known broken test for relative setting of mail_root Date: Fri, 7 May 2021 08:30:23 -0300 Message-Id: <20210507113029.2685184-4-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210507113029.2685184-1-david@tethera.net> References: <20210507113029.2685184-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: XFJCPWA35ECW7ABB7PZWKVWJZOPPD4S7 X-Message-ID-Hash: XFJCPWA35ECW7ABB7PZWKVWJZOPPD4S7 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=1620387092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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=tkc+kYsQxyJ3a9BiuNmDSp3zctYIWguiLZcVpidXMo4=; b=K8MJsRmmejg28+KM86yAW/ntNcJFYp5l6rT9py+84t0Ovan96/xtwFyiFLvh2xhs45epTi bEIIBXBVXQg+3mWIJ+LRCV7Pm6b3jfar6ffsaVm6OB4trdyunc6wjrMIsWZXkwuUHEIZYZ IstLR/ZWvaTf6e52HRbO0lthryDnquMuDB8agtUH+lWFSXfm89IkJNJGEabjldDKCRUOm5 xSLxTEPapOflbbMXNqS2Axs4XQmD/FIeAAt+FUy3qM9elaUlaH1qllNWP/IluVfkPVyWmy +6SM+fWiHgPkecUCY6sxpzcpOUswxkCY3twAI/IAtT+oJl6yBAXJUo6uUX88RA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620387092; a=rsa-sha256; cv=none; b=pZEXEPh8pFNHvRbR83yA1107PSHBLnoz3QFiPQCDUJxEvnE8dqzXZ3N+0+sXkCqo5QjXdF pKfz9f3XJD/2y51A4Za87z6DiXzVoQ2oOu6b4H9/ug/RGcKyyqpnEhJk4fApchYsAbqbhq JFpuU7aIExkaGHTnuo0R8IT6lfvziIu+hHhcb0P5i4JjcCZLzQPpX2DDp2cBv8WklS+KLQ /c1ccRxWqnMr+YzYmGbn7ZeKrufIY5JdLm5uX/HzGP3q/u/hTSJCCp789x0tdFJTJW4d3N lRLJnYjqvl364bvs/jn0jJlwPL41zKzuc5s5FkhP4H1MEC6eh4jRXcVyJAca9Q== 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: 0.42 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: D614512418 X-Spam-Score: 0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3gJYEYLI75ma The behaviour should not change depending on where the configuration is stored. --- test/T050-new.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/T050-new.sh b/test/T050-new.sh index 33ad7f5a..f28497bf 100755 --- a/test/T050-new.sh +++ b/test/T050-new.sh @@ -406,6 +406,19 @@ notmuch config set database.path ${MAIL_DIR} rm home/Maildir test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Relative mail root (in db) expanded in new" +test_subtest_known_broken +ln -s `pwd`/mail home/Maildir +notmuch config set --database database.mail_root Maildir +generate_message +NOTMUCH_NEW > OUTPUT +cat <EXPECTED +Added 1 new message to the database. +EOF +notmuch config set database.mail_root +rm home/Maildir +test_expect_equal_file EXPECTED OUTPUT + add_email_corpus broken test_begin_subtest "reference loop does not crash" test_expect_code 0 "notmuch show --format=json id:mid-loop-12@example.org id:mid-loop-21@example.org > OUTPUT" -- 2.30.2