From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id LLkmAlwwlWDaTAEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 14:19:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8ADHOFswlWBFJwAAbx9fmQ (envelope-from ) for ; Fri, 07 May 2021 12:19:39 +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 B17B613321 for ; Fri, 7 May 2021 14:19:39 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 494462716D; Fri, 7 May 2021 08:19:35 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id E1C3B1FAC2 for ; Fri, 7 May 2021 08:19:31 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 69C551B00CD1; Fri, 7 May 2021 15:19:28 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1620389968; 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: in-reply-to:in-reply-to:references:references; bh=Dien/Omes4zzq7rYaPoRBB7c8d8pUfpDp68ZJPcKr50=; b=X1o/6r+vCrdxNRpL8GlR/ZeDH1lY5S9RrqIIAN+NP53R6rImoQxk/oKNUt4SHSuqSzv+nu 9E17DvicSZxJEzWWnR6nf+TT6DYjysa9Wk1u4corwpHbOMo+YjH6+a82PgR01FkNAz3eF6 0pJHcdVBdd1nIHm1p96Kf7+dbNMx0QoZVk/uwRmeZHJ+kte85nZbX9LAdaiGwxHzbuze9v qocgk7F5HFFrFETwMVp0n5mc/6w7eHoCvy7mXhkJOOv3U+ar8g+KTzH7tknjx4X4uHrdff dCRVRdjJcfs4qw5NgChPKLTEd6no9FNSmN/r2nBkE4XHuxyExIp7bugXEwBPOg== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Cc: David Bremner Subject: Re: [PATCH 1/9] test: add known broken test for relative database path in new In-Reply-To: <20210507113029.2685184-2-david@tethera.net> References: <20210507113029.2685184-1-david@tethera.net> <20210507113029.2685184-2-david@tethera.net> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1620389968; 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: in-reply-to:in-reply-to:references:references; bh=Dien/Omes4zzq7rYaPoRBB7c8d8pUfpDp68ZJPcKr50=; b=dAFkupFfiDUZWw/3Xt+f5kD+JqPZhakqgGP9CiDqJX/aobCbxwYNLLrXSU0RimGJk1ZkE1 QkE0znpl82I83pwoE1QTawmN3EC2CqJWvu2DVs8giJuNKr6SyX6F/16uozi7PdVsL1Ckjc PtI+87jWJmuVBMAoYAM3c7P1YK1R44HWqdibYIHgJ5/KuAHkvHXA9poeyE3hl4HHzqaYHk NxTF6uf70zOju5ajqdnB6+F5x9AT+kRC9nSpbfQsJbQ/y2QGs4/1Kls+L/145DhVFycnbS q3k5xLgC2bDz6u59bwKQsxKfEKQ6kF/cfBryV59KjfRVhYYZAelWXx1duhb3gw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1620389968; a=rsa-sha256; cv=none; b=PJD59WMUHTOtLgWkclsAFIewFL+MgzWe/4l02idUbfUGiZNWTcel7CO6MMPXTtXTlvoA0r xeYMrjqPH/YWKUGFTIv0R5ok7uNLSOhyyH5d+s4lGTjtmoGfa9gREO2oJ4b20ZMpju0D8n J5hwFpppFkaXE2eu6gbl2fKArhy353D4P+Rds9nc+OBYymgipuo/MAJpX9kzSL1MpKrD2F W5SPE8hO9N2AyAqTDlZRtyA2+jtSvEgVuM6bdwlAVAFo33v0Xmkm1q1GVv+wAUv2lOB9I/ bqmaQxUP8miGV+wEUxet6Iv2mv0ocxIovWCfi2bBMMtWoehLMnBEqHjNFSyCXw== Message-ID-Hash: VMNDINAW6DNG7KZEEQB35YO54ERCDALY X-Message-ID-Hash: VMNDINAW6DNG7KZEEQB35YO54ERCDALY X-MailFrom: tomi.ollila@iki.fi 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620389979; 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:dkim-signature; bh=a0O74+ERQBKY3lkc69skS6hWZdNG0xZs5CdRl76WBIw=; b=KKFAz/RZByVLhbMpkBVkn6nJf6C3r7swKf2s6MK92sGwuK+HxUKp+1vzN5ly8tG02ZoShT 7iAUsPVcg+J3yuWun62kIYBQnLugx6ThM5eFE0H3kuiLyfKFxsmL6XWHv1BiQvgaIW3HQ3 gCbDfTwNX7ai4Ya24O1l5cz/zL8rsvDxsNHg7ZGUEmZHQXT4C1c/BuH6qhxTD8KCCh67su EHwKNHByQ0lix1uxdmiq/w7rYoi5HPRWLAiqyQm5dT7p60m9oTIGd4vfRSpSm3AH5pfYcb TypFR2zE8nUn+7EIXjMsS73tTO5cCISJuxG9ovl8qHBp3BufeumIDJ1wNvm84A== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1620389979; a=rsa-sha256; cv=fail; b=m1vWNJjXTxXCHaXVUyisk80zErSvpo70wfnG3pnD+TN9GYBK81MkFW9efsbz1JJZ1XCUmD lYEfO6n4ZZNQlgaOiR60rqplh156YCj0hDFhH8Pfx1LrZK9nrVMudsG09Zlba2v8wHIobE PMVK76V/8vix+AEn6oPU3I9l+1mTiXzbMxWtOb5yR6IU1MFx6HL59o9uYQjat0xXiQXVuZ 0wpIB8UlXSNUTrU85Fev9TPOeb7wq7EEIJn6E471E/FJGKpnrFqHvYobNNzWsQU3aQFSEf fkMqlRR+aIf6UugKS37bGE65lh/PYYP9f5F+CcTsw09QA5igcb9giPUU+0PLJw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="X1o/6r+v"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: 2.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="X1o/6r+v"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); 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: B17B613321 X-Spam-Score: 2.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: IYFHl46sbKAJ On Fri, May 07 2021, David Bremner wrote: > This test highlights a bug introduced in 0.32. The new split between > path and mail_root does not properly canonicalize relative paths in > the latter. > --- > test/T050-new.sh | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/test/T050-new.sh b/test/T050-new.sh > index 2985e24c..5faf6839 100755 > --- a/test/T050-new.sh > +++ b/test/T050-new.sh > @@ -394,6 +394,19 @@ exit status: 75 > EOF > test_expect_equal_file EXPECTED OUTPUT > > +test_begin_subtest "Relative database path expanded in new" > +test_subtest_known_broken > +ln -s `pwd`/mail home/Maildir $PWD > +notmuch config set database.path Maildir > +generate_message > +NOTMUCH_NEW > OUTPUT > +cat <EXPECTED > +Added 1 new message to the database. > +EOF > +notmuch config set database.path ${MAIL_DIR} > +rm home/Maildir 2 spaces > +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