Skip to content

local: add support for database.mail_root notmuch config option - #323

Merged
gauteh merged 1 commit into
gauteh:masterfrom
laarmen:notmuch-db
Apr 21, 2026
Merged

local: add support for database.mail_root notmuch config option#323
gauteh merged 1 commit into
gauteh:masterfrom
laarmen:notmuch-db

Conversation

@laarmen

@laarmen laarmen commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

This option was introduced in 0.32, and allows for the DB path to be decorrelated to the maildir location. See notmuch-config(1) for details.

This option was introduced in 0.32, and allows for the DB path to be
decorrelated to the maildir location. See notmuch-config(1) for details.
@gauteh

gauteh commented Apr 21, 2026

Copy link
Copy Markdown
Owner

We still require it to be relative / sub-dir to the db path?

@laarmen

laarmen commented Apr 21, 2026

Copy link
Copy Markdown
Contributor Author

AFAICT we don't really care about the database path, it's the maildir that's important. The DB used to be located next to the maildir, but with that option they can now be de-correlated, which I believe is now the default behavior on new configurations, if I read this comment correctly:

# Supported values are 'mail_root' and 'path'. The recommended option
# is to set 'mail_root' to the directory where your mail currently exists
# and to where mail will be delivered in the future. Files should be
# individual email messages. By default notmuch will store its database
# in $XDG_DATA_HOME/notmuch; you can override this by setting 'path'.
# If only 'path' is set, this directory is for 'mail_root' and for
# the database location (in a subdirectory called ".notmuch").
#
[database]
mail_root=/Users/schopin/Mail
path=/Users/schopin/.local/share/notmuch/

@gauteh

gauteh commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Ok. Good. I don't have the chance to test this, but if you've had the chance to test it then I'm happy.

@laarmen

laarmen commented Apr 21, 2026 via email

Copy link
Copy Markdown
Contributor Author

@gauteh
gauteh merged commit 8e9be80 into gauteh:master Apr 21, 2026
1 of 6 checks passed
@gauteh

gauteh commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Ok, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants