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 OD/mFRYpw2EsnwAAgWs5BA (envelope-from ) for ; Wed, 22 Dec 2021 14:33:10 +0100 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 aKatERYpw2E2IgAAB5/wlQ (envelope-from ) for ; Wed, 22 Dec 2021 13:33:10 +0000 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 2185632AC1 for ; Wed, 22 Dec 2021 14:33:10 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1481A5F708; Wed, 22 Dec 2021 13:33:06 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 843A75F6DA for ; Wed, 22 Dec 2021 13:33:03 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id DE1A05FC42; Wed, 22 Dec 2021 08:33:02 -0500 (EST) Received: (nullmailer pid 1097384 invoked by uid 1000); Wed, 22 Dec 2021 13:33:01 -0000 From: David Bremner To: Tohiko Looka , notmuch@notmuchmail.org Subject: Re: Database path relative to home directory In-Reply-To: References: Date: Wed, 22 Dec 2021 09:33:01 -0400 Message-ID: <87a6gslq7m.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: UUZ24LFPAO2YGGKYZHWUXWZB6W4VGMQE X-Message-ID-Hash: UUZ24LFPAO2YGGKYZHWUXWZB6W4VGMQE X-MailFrom: david@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=1640179990; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=1WU0mVnpbwN4pt/1lzmakwOKHGfFIgeiRmLvtpwq1xM=; b=TUdJqHYGCrwbq2nDO3gDN+39pUao3eammbXRqf4KcjYlf/2XpHyCqpmV4vH373I+DH31D+ 0OKBjVcWyMkqDxRkQIIUK7bRXd70SVMiiVkPBZXCQ83MC4VmD4TpU1paDmQZpYYtyZCpNs PPmGCdlvHIU7fXor9/5nTYBR9Z7e3u5Kc01UOqLhKOkALfMN1R24Sy1GFBTl0A2an5uWXw fg4QO7cB7q/zZ1pDHaK1axzRj+5PxQUbGi55phRK0yFSmChqPiqxg1eKeECom74TifR/WJ MsrmZvcdWfWRpKsT/5a0dUaQftrBvfiqV3c4CokdUhcZIY8VkipZ3dYQjHJu+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640179990; a=rsa-sha256; cv=none; b=UQKtY7ws64OpQ2vmUxvahgAIJm4+Yi+DRufMyfCCW9gv0CZH99fgrC+SXH/GoT+/8R1QHp c6/pYFuhwC+HZFbIJ70jLbr7KOG62bXHSp05HDruq14HeG2XO7PAxsks9xbRdNHTM00tiO iOkJ242fvf0g8+H5ojeScWSScWdVLpE0TLAVHQm1nAVFboKfXbmilAOJmrDYimqMz495nf 2qjJlkBpFqzIj6zvUY2CeQ0Z1lo7TSzJLKyU90lPkNS8afN9Ife4gUWWf0M2CpF9CQNHIe 4ro21B3K0aJzlGidifAiR+kaCqs+5uRmnf9y5/8wzmKg/dFLNMy1XfzPBQ7bzg== 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: -3.22 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: 2185632AC1 X-Spam-Score: -3.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: bSblN5HwEQ+p Tohiko Looka writes: > I use the same config file for notmuch for multiple machines (as part > of my dotfiles). These machines have different users so I want to have > the database relative to the home directory. > > I tried setting the database director to "~/.mail" and "$HOME/.mail" > and neither worked. > Is there a way to set the database directory relative to home? If you have notmuch >= 0.32 everywhere, you can use the XDG locations documented in notmuch-config(1). Otherwise relative paths in section database are interpreted relative to $HOME (documented in the same place). So "notmuch config set database.path .mail" ought to work.