X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fopen.cc;h=280ffee343f91e893a2743683290ea4b41c034ac;hb=ddbf3ffe9bfafa39f2142a7ff9ead202b4b88433;hp=7b95c5b151d14f958f7b02341cd3eb27229ab285;hpb=e2a3e5fa51122efb0f5ac836e536881d97deef1a;p=notmuch diff --git a/lib/open.cc b/lib/open.cc index 7b95c5b1..280ffee3 100644 --- a/lib/open.cc +++ b/lib/open.cc @@ -220,6 +220,10 @@ _choose_database_path (void *ctx, } } + if (! *database_path) { + *database_path = getenv ("MAILDIR"); + } + if (! *database_path) { notmuch_status_t status;