aboutsummaryrefslogtreecommitdiff
path: root/lib/open.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-08-18 21:46:42 -0700
committerDavid Bremner <david@tethera.net>2021-08-18 21:46:42 -0700
commit3df2281746d57abbb45790ecb432ef40533c30bc (patch)
tree3e595ef0946ce6aa6604863a36e3e67bbf7d3f03 /lib/open.cc
parent6fec5d771ede7998ff395abd636d391c21163409 (diff)
parent34fec91e17629a6a095bd5930e020dfeaddff245 (diff)
Merge tag 'debian/0.32.3-1'
notmuch release 0.32.3-1 for unstable (sid) [dgit] [dgit distro=debian no-split --quilt=linear]
Diffstat (limited to 'lib/open.cc')
-rw-r--r--lib/open.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/open.cc b/lib/open.cc
index 7b95c5b1..280ffee3 100644
--- a/lib/open.cc
+++ b/lib/open.cc
@@ -221,6 +221,10 @@ _choose_database_path (void *ctx,
}
if (! *database_path) {
+ *database_path = getenv ("MAILDIR");
+ }
+
+ if (! *database_path) {
notmuch_status_t status;
*database_path = talloc_asprintf (ctx, "%s/mail", getenv ("HOME"));