From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GDgfDuQPmWBmcAAAgWs5BA (envelope-from ) for ; Mon, 10 May 2021 12:50:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OMDaCeQPmWA7LAAA1q6Kng (envelope-from ) for ; Mon, 10 May 2021 10:50:12 +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 DBE5C162D2 for ; Mon, 10 May 2021 12:50:11 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 143BA2717A; Mon, 10 May 2021 06:50:08 -0400 (EDT) Received: from fethera.tethera.net (unknown [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id D8B0927176 for ; Mon, 10 May 2021 06:50:05 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 938B260016; Mon, 10 May 2021 06:50:05 -0400 (EDT) Received: (nullmailer pid 56676 invoked by uid 1000); Mon, 10 May 2021 10:50:04 -0000 From: David Bremner To: Jack Kamm , notmuch@notmuchmail.org Subject: Re: Breakage after updating to 0.32 (database and path issues) In-Reply-To: <87eeefdc8b.fsf@gmail.com> References: <87h7jcc5t2.fsf@gmail.com> <87eeefdc8b.fsf@gmail.com> Date: Mon, 10 May 2021 07:50:04 -0300 Message-ID: <875yzqkgmb.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2BOQYEHNHEJX73TJCCZB3B466THQXSYN X-Message-ID-Hash: 2BOQYEHNHEJX73TJCCZB3B466THQXSYN 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; 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=1620643812; 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-unsubscribe:list-subscribe:list-post; bh=lSzjY6PfdklDs0nEFpmD3wxdeDXQpHUwCXBimBVGBOo=; b=JLuWmOxaEOb9KkQI6KC0IxQcrPzx1k0usR1maQ8Lr7PWNGV/uQyw9jTTi4n2xoWppM+ZwX cQQb1bJUQiMdv2zlVc+6urwsR78pzO8yptV5TKzwrloGXr8N3pgvUmvVoUgvPp67iBpQ7V zM08sYONURXXLlbMKYzaFnXE9R+INjrjcvUGqvzzeuOZv6s9xw5N2Iuhsbrc/CZ4MiDH1/ goL7aNP59vSVHJ7Dg4mdnznOR7TF3xXvZ3g+m9STid1LN0lpON0fmhemFNUQgDZtGwwbRD uLvIbDOziYsSa6p386nRvoIJpd+f/t0K1MkaRW53g/TuLGecjz76NQm/qcK0UA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620643812; a=rsa-sha256; cv=none; b=BNGaL6cGRfrv7NaZEg7zL8OPw0+LpTZA8EejnBXDV6nl//WZ22xU/3sRujroVMzzCF9z+t JgXPKTpBLLUZ0TbMUVfAPKxowAJZFscbLLcNdjtGyobHgXlHdry9tYyhQfOR0MoU3N7HsN ybm7tR880LUgO7Xiq4zQFH4MUHpk+m000rqvr3ckxZnMZttrCzGbeq5j7NWzZT2Qh4taTc LVLlqqnEvJ0Zd5QlgJO8rvp9+e5rO/G5/jXdm3QkOvkICVqib8E9SvXEV9j/421Ls1o9pH q0oV5NTunpCTa8IFnGuhBD+buqvq8n7Ybo0BX/hEAaXCwcNQDThCgCJQpsqeeA== 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: -2.05 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: DBE5C162D2 X-Spam-Score: -2.05 X-Migadu-Scanner: scn0.migadu.com X-TUID: SuxgCAgvshWp Jack Kamm writes: > Update: I was able to fix my problems by explicitly setting "database.path" to "$HOME/mail" in my .notmuch-config. Then, notmuch was able to find my emails in my "$HOME/mail" as well as my database at "$HOME/mail/.notmuch". > > Confusingly, if "database.path" wasn't explicitly set in > .notmuch-config, then "notmuch config get database.path" still > returned "$HOME/mail", but notmuch cant' find the database, instead > looking in ".local/share/notmuch/default". Is this a bug? It's a bit surprising that you can't reproduce this anymore, because I think there really was a bug here. I have sent a patch as a followup, > Also, it seems like a bug that notmuch was unable to find any of my >email when I had previously set "database.path" to >"$HOME/mail/.notmuch". It seems like it was looking for the mail in >"database.path" when it should have been looking in >"database.mail_root". Notmuch has to go through some contortions to support both nested (.notmuch inside mail dir) and split configurations, and we may just have to call this one unsupported. It didn't work before, so there is no loss of functionality here. > Finally, the manpage of notmuch-config(1) seems to be incorrect when > it says that database.path will use a ".notmuch" subdirectory when > "database.mail_root" is unset. In particular, "notmuch config get > database.mail_root" returns "$HOME/mail", however "database.path" is > still using a ".notmuch" subdirectory. Sorry, I don't follow this. I don't _think_ there's an actual error here, but if someone wants to propose patches that make that part of the documentation clearer, I'd be happy to take a look at them (although probably not for the point release, which I want to get out the door).