From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id SK92N7tbHGfBbAAAqHPOHw:P1 (envelope-from ) for ; Sat, 26 Oct 2024 03:02:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SK92N7tbHGfBbAAAqHPOHw (envelope-from ) for ; Sat, 26 Oct 2024 05:02:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=pengjiz.com header.s=fm1 header.b=OOUISK2B; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=UaShKxJb; 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; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729911739; 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:dkim-signature; bh=hfmYoBj7/4zx4txUXuUV4qAq+lxkMCz7OI/GPI+kHtc=; b=G57wy6u6C/P1PWiw+ZMLsAiWOaAlUg6m1jAExNZaRYt8hNlSoHuRg4iwG/K2lnFiUJFZXp te2UUV/hSDVwRkZw741jeTeYh4SVKTGsFksxAeelcTOzc3uI/AH3A1AC+npMV3KcrAlS2u O0g02gD6aYeF1Rh6J/efL1CHWH/yyDSgU3n4j4Wvm0aPfmP2BMWLeUaEcUEZ1icib6qax1 aiO0fYlc7Fk3DsQDFWxCCGdcRSJchZfHZZRnhopJXUrod/H0xZEo1T3plj8ahc4HNLG0BS VkabgqZebTwsJlL6k5Og7oWYWhEjis7VbiyYQeo5aGBN0IBkKnFyUNslaZLJZw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=pengjiz.com header.s=fm1 header.b=OOUISK2B; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm3 header.b=UaShKxJb; 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; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729911739; a=rsa-sha256; cv=none; b=FISu7bprBQwFHVXQKyMnZN2Ml7LFVj0schaqmRfPDnA5GMna/ou/uzvKV2B9buxQksGw5z WuK/RrhvAxVwumoZ/6a5P/6Pd3Wqw3yLPAGhgSgqJKycJ39q/GKZu56ADPv6KswmHowhZf 6nFM01t4Mc+35cr1P1Ot4BDEY6NXq/OEbDpNEFS5xyTKfvEP3Vmn/Wlxy5XeAIblm7Y56N PUvWnBWDhClGgZqndlfN7i2RTLIAHTVtX4GASAVS7+dHGqrDlOTAzaVMn4HqSf3ikKTxgb ZZTwF9B4D1lH+74+hdcuGX4u6fDVqaAtJjigQ5sj/x5TyrCN/Ov4gzzc+UavAA== 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 8824845A3B for ; Sat, 26 Oct 2024 05:02:19 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 63D525F81F; Sat, 26 Oct 2024 02:53:53 +0000 (UTC) Received: from fout-a7-smtp.messagingengine.com (fout-a7-smtp.messagingengine.com [103.168.172.150]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0418F5E2A0 for ; Sat, 26 Oct 2024 02:53:51 +0000 (UTC) Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.phl.internal (Postfix) with ESMTP id 4DA3913805FD; Fri, 25 Oct 2024 22:53:49 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Fri, 25 Oct 2024 22:53:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengjiz.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1729911229; x=1729997629; bh=9W7TxXuvna 4qTaEkLG2ekMMJ5FP/rldI2AxCsnZ5IcU=; b=OOUISK2BC6c0QSQjm99jfqVLLE he0H0z9x+rW2F6iFjwGMevh/8AYTMl59iLXZsmfz2j6ROAXcXOMpaCT7A2ml5eye nHCNLxhhmg//7k8woXjbtNqKXdxT2oBtIR9+vYsQR+CzKdxWjHeKzj902Z3hrEqt QRxwJ9CgaVff3O2favw9MDiiiJRBZo/nZUqmy2KHVvElEgTtvwpA+J8kiM2C9Cd9 neLzySln8hEW9sxJpGTtDk+H01YakvOyA7CxxrCR9XvU8rN0Wdkldk3Pfwf4L00d 3fTZ0ijIctlimlKWHnK1T5nLEofVXtRFIfw1sBIQBL1V1Eody9igdTYCWsjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1729911229; x=1729997629; bh=9W7TxXuvna4qTaEkLG2ekMMJ5FP/ rldI2AxCsnZ5IcU=; b=UaShKxJbwWDrQF/PcBYtD3uJk5AQ56kCGmCE0AXS+upY psGpa4Rhjnik1l/id60Rq6PkCTD7hBrez376//5LIS2RlW04PtjP+WO5ZVLoUnX9 sWA+vc8K5jHEV+UkVa6GXjHMU/ytqwYd+Moin/oFvMq0UBCP2auXWktlawuh+TLm TI5XlkRdG6maqCg6farx49EKnfxJlS7o6QjCJIZk9Gh8AcBsR55LUeSYWZ3RNFtt v+Uu0ic62YJvLS07EBB1qtWrF5bMfXawBi9kWq5p0MEG/wqLDa941M3z9zXnnETG tVy9x4Jbk034iQlfM+z618tj5ttY275GoyxsqlVNbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejfedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfh rhhomheprfgvnhhgjhhiucgkhhgrnhhguceomhgvsehpvghnghhjihiirdgtohhmqeenuc ggtffrrghtthgvrhhnpeetvddtvddvheeigfeikeekkefhgedtheffffelhefhjeduvdev vefhleeigfevveenucffohhmrghinhepphgrthhhrdhlohgtrghlnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgvsehpvghnghhjihiirdgt ohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope hrrghlphhhsehmlhdrshgvihgthhhtvghrrdguvgdprhgtphhtthhopehnohhtmhhutghh sehnohhtmhhutghhmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: i16614472:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Oct 2024 22:53:47 -0400 (EDT) From: Pengji Zhang To: Ralph Seichter , notmuch@notmuchmail.org Subject: Re: Relative directories for database-mail_root and -path? In-Reply-To: References: Date: Sat, 26 Oct 2024 10:53:33 +0800 Message-ID: <87o73760cy.fsf@pengjiz.com> MIME-Version: 1.0 Message-ID-Hash: ZJJKOOM7EJF22RYJWC576ZRNEZTLAOZF X-Message-ID-Hash: ZJJKOOM7EJF22RYJWC576ZRNEZTLAOZF X-MailFrom: me@pengjiz.com 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-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 7.84 X-Spam-Score: 7.84 X-Migadu-Queue-Id: 8824845A3B X-TUID: NXyMNTG5HTyn "Ralph Seichter" writes: > Looking at [1], I am trying to figure out if/how the semantic > equivalent of the pseudo configuration > > [database] > mail_root = ~/.maildir > path = ~/.local/share/notmuch/default > > can be achieved? The docs don't mention that '~' has any special > meaning, and my tests agree. How then does one specify directories > relative to the user's $HOME ? Simply dropping the ~/ prefix and using > .maildir or .local does not seem to work either. I found the latter > being suggested in some Internet search result or other, and thought > I'd give it a try, but no dice. I suppose dropping the prefix should work? In 'lib/config.cc': --8<---------------cut here---------------start------------->8--- static char * _expand_path (void *ctx, const char *key, const char *val) { char *expanded_val; if ((strcmp (key, "database.path") == 0 || strcmp (key, "database.mail_root") == 0 || strcmp (key, "database.hook_dir") == 0 || strcmp (key, "database.backup_path") == 0 ) && val[0] != '/') expanded_val = talloc_asprintf (ctx, "%s/%s", getenv ("HOME"), val); else expanded_val = talloc_strdup (ctx, val); return expanded_val; } --8<---------------cut here---------------end--------------->8--- So if the value does not start with '/', it is considered relative to the home directory. What does 'notmuch config list' show for you? Pengji