From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0LYhByEllWC1NgEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 13:31:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kES1AiEllWBXCQAAbx9fmQ (envelope-from ) for ; Fri, 07 May 2021 11:31:45 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 CA3FB19AEA for ; Fri, 7 May 2021 13:31:44 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E582527E2C; Fri, 7 May 2021 07:31:16 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id E972F27DFA for ; Fri, 7 May 2021 07:31:03 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id D05DD60018; Fri, 7 May 2021 07:31:03 -0400 (EDT) Received: (nullmailer pid 2687422 invoked by uid 1000); Fri, 07 May 2021 11:30:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 5/9] test: test relative paths for database.hook_dir Date: Fri, 7 May 2021 08:30:25 -0300 Message-Id: <20210507113029.2685184-6-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: WPY4RZZXBWOFLKIHJQOTO427BVRBDLEY X-Message-ID-Hash: WPY4RZZXBWOFLKIHJQOTO427BVRBDLEY 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=1620387104; 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=dS8t7bGO92dq5CQekIUtCvgkMt6vLjyfqcz4ZQK/fOQ=; b=GaKA9ZfXGvSMfwhOet7RuvAtuhE68txsHiysfIrrEF8C/XiPinwk31JuY91o9rIA55gv+J a2odC68XT9PS3fc5/XR0+1opy15A3/9R9nHpqPvNTHTWk6HO/zC+l5u99eLcfOY2D+Ke24 vMydbSlqlvKq13G0tq4gbWIWEgCOp76QT+Du1K8J855RXQcPwGKjPDgFHqDL39shDaziXr VqaZcj5ZCuw0WiYg+D9cp8+l6YOo2+OicR6wn/Ws0jRw4AUGSDZkVExXzys5rZq1Ah7Oph FvmiRYWgtGHFKVLjTQGm5aeUoODNOfekWkbz2UV3P1fkLFZaUPo8xqpj1O5xHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620387104; a=rsa-sha256; cv=none; b=FDi1TjG87ycYU3ek/sxnrUAgqClV62y0GoGsBVwfIkgW33D3e7BpBBG4ANhr2o8gTDUu1b pGeZBwFyn7x0jTFKQQk+ux2Q26oxyKGQlnC2M1MJ+Db5j12WOPtGJ5ru7YhkJsuJUAI1sc 4yT2z9MsuvZsVLcv7bI9CxifUXUwT/m8uKJve1eUePiqx4ES+rIC+FRemvL2Vgf9xLzQq6 BUqkw2md68efz56ldgLjpptkT1gMdpAiB3JMwOcMx8mbCeia82EmGC+usm8ciLQ17DYUQZ VXGo1f4Lwp9BNyiI9QznnqF3VWl1HkQAzJS1IjRWJ+VgauwpMkGBEeJlDGvX1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: CA3FB19AEA X-Spam-Score: 0.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: WLKhz4ieCPdC --- test/T400-hooks.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/T400-hooks.sh b/test/T400-hooks.sh index 3a2df2f4..00c99337 100755 --- a/test/T400-hooks.sh +++ b/test/T400-hooks.sh @@ -43,7 +43,7 @@ add_message # create maildir structure for notmuch-insert mkdir -p "$MAIL_DIR"/{cur,new,tmp} -for config in traditional profile explicit XDG split; do +for config in traditional profile explicit relative XDG split; do unset NOTMUCH_PROFILE notmuch config set database.hook_dir notmuch config set database.path ${MAIL_DIR} @@ -63,6 +63,11 @@ for config in traditional profile explicit XDG split; do mkdir -p $HOOK_DIR notmuch config set database.hook_dir $HOOK_DIR ;; + relative) + HOOK_DIR=${HOME}/.notmuch-hooks + mkdir -p $HOOK_DIR + notmuch config set database.hook_dir .notmuch-hooks + ;; XDG) HOOK_DIR=${HOME}/.config/notmuch/default/hooks ;; -- 2.30.2