Closed paretje closed 5 years ago
I'm wondering, can we avoid reading notmuch settings on our own completely?
I checked, and notmuch_config_open
isn't exposed in libnotmuch. So unless we would use something like notmuch config get database.path
, I don't think we can get rid of this. E.g. alot also reads the config file on its own.
@paretje then fine for me - could you rebase this on master?
In addition, it would be nice if you could add a line to docs/configuration.rst
mentioning that afew honors the MAILDIR
environment variable as fallback, like notmuch does too.
@flokli I just documented how afew determines the notmuch database location.
Thanks!
Notmuch cli uses the MAILDIR environment variable as a default when no database path is configured in notmuch config. This adds the same behaviour to afew.