Re: API docs: notmuch_database_open_with_config with NULL config

Subject: Re: API docs: notmuch_database_open_with_config with NULL config

Date: Sat, 15 Apr 2023 12:26:33 -0300

To: James Cook,


From: David Bremner

James Cook <> writes:

> Hi list,
> If I'm not mistaken, calling notmuch_database_open_with_config with
> config_path = NULL causes notmuch to try to find the config file
> automatically.
> It would be nice if that were documented in the notmuch(3) man page. I
> can try drafting a patch if that would help.
> (This message brought to you by trying to understand neomutt's notmuch
> code...)

Here is what i see in the notmuch(3) man page:

        config_path Path to config file.

           Config file is key-value, with mandatory sections. See notmuch-config(5) for more
           information. The key-value pair overrides the corresponding configuration data stored in the
           database (see notmuch_database_get_config)

           If config_path is NULL use the path specified

           • in environment variable NOTMUCH_CONFIG, if non-empty

           • by XDG_CONFIG_HOME/notmuch/ where XDG_CONFIG_HOME defaults to '$HOME/.config'.

           • by $HOME/.notmuch-config

           If config_path is '' (empty string) then do not open any configuration file.
           profile Name of profile (configuration/database variant).

           If non-NULL, append to the directory / file path determined for config_path and

           If NULL then use

           • environment variable NOTMUCH_PROFILE if defined,

           • otherwise 'default' for directories and '' (empty string) for paths.

I'm not claiming the documentation is perfect, but it seems to be
documented? Is there maybe some version skew between your man pages and

notmuch mailing list --
To unsubscribe send an email to