From: David Bremner <david@tethera.net>
To: Jack Kamm <jackkamm@gmail.com>, notmuch@notmuchmail.org
Subject: Re: Breakage after updating to 0.32 (database and path issues)
Date: Sun, 09 May 2021 14:51:57 -0300 [thread overview]
Message-ID: <878s4nkd6q.fsf@tethera.net> (raw)
In-Reply-To: <87h7jcc5t2.fsf@gmail.com>
Jack Kamm <jackkamm@gmail.com> writes:
> Updating to 0.32 broke my notmuch setup. notmuch could no longer find my
> database; after I changed some paths in my config, notmuch appeared to
> be able to find the database again, but wound up rebuilding it anyways,
> and could no longer find any of my emails.
>
> Any advice on fixing my setup would be appreciated. Also, I would
> suggest adding information to the v0.32 release notes of any breaking
> changes that were made, and how to migrate existing setups.
There is a bug related to relative values. Maybe that was what you encountered?
There will be a point release soon with a fix for that bug. In the mean
time you can just set database path to an absolute path.
> I'm on Archlinux, and my email is located in $HOME/mail, with each of my
> accounts located under a different subfolder (e.g. $HOME/mail/gmail,
> $HOME/mail/work, etc).
>
> Below are details of the problems I ran into after updating to 0.32:
>
> First, notmuch could no longer find my database at $HOME/mail/.notmuch:
>
>> $ notmuch new
>> Error: Cannot open database at /home/jack/.local/share/notmuch/default: No such file or directory.
You should not have to change your configuration to work with 0.32,
other than temporarily making sure database.path has an absolute value.
If you have a configuration file that works with 0.31 and not with 0.32,
please share it as precisely as you can, including the contents of
.notmuch-config.
>
> At this point I manually set database.path, but I got a new error this time:
>
>> $ notmuch config set database.path $HOME/mail/.notmuch
>> $ notmuch new
Note that the ".notmuch" should not be included in database.path.
>> No new mail. Removed 884086 messages. Detected 12226 file renames.
>
> I'm also quite concerned about the "Removed 884086 messages." I'm
> guessing it only removed entries from the database, and doesn't seem to
> have deleted any files.
That's correct. Notmuch does not delete mail files.
> But I need to double check my afew filters and
> mbsync configuration, to make sure no deletions propagate back to my
> remote. In the meantime I'm refraining from running mbsync/notmuch until
> I can verify that nothing will get deleted.
Fair enough, it pays to be cautious.
next prev parent reply other threads:[~2021-05-09 17:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-09 14:58 Breakage after updating to 0.32 (database and path issues) Jack Kamm
2021-05-09 17:51 ` David Bremner [this message]
2021-05-09 18:08 ` Jack Kamm
2021-05-09 17:54 ` Jack Kamm
2021-05-09 18:52 ` Jack Kamm
2021-05-10 10:39 ` [PATCH] lib/open: restore default database path of $HOME/mail David Bremner
2021-05-15 12:12 ` David Bremner
2021-05-10 10:50 ` Breakage after updating to 0.32 (database and path issues) David Bremner
2021-05-16 23:50 ` Jack Kamm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878s4nkd6q.fsf@tethera.net \
--to=david@tethera.net \
--cc=jackkamm@gmail.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).