X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=notmuch.c;h=ff9ad18b5d36ea0fb32dbbd4c52cb967b608e415;hb=8d5b8753cf9292d7b316bee7d3de2239d6b41e6d;hp=0f387b00c77588f6f9fcd1e87abafc33a475e41d;hpb=34f734e26b1202cbfbbd06293962571538188fc4;p=notmuch diff --git a/notmuch.c b/notmuch.c index 0f387b00..ff9ad18b 100644 --- a/notmuch.c +++ b/notmuch.c @@ -391,7 +391,7 @@ notmuch_command (notmuch_config_t *config, /* Notmuch is already configured, but is there a database? */ db_path = talloc_asprintf (config, "%s/%s", - notmuch_config_get_database_path (config), + notmuch_config_get (notmuch, NOTMUCH_CONFIG_DATABASE_PATH), ".notmuch"); if (stat (db_path, &st)) { if (errno != ENOENT) { @@ -422,8 +422,8 @@ notmuch_command (notmuch_config_t *config, "or any other interface described at https://notmuchmail.org\n\n" "And don't forget to run \"notmuch new\" whenever new mail arrives.\n\n" "Have fun, and may your inbox never have much mail.\n\n", - notmuch_config_get_user_name (config), - notmuch_config_get_user_primary_email (config)); + notmuch_config_get (notmuch, NOTMUCH_CONFIG_USER_NAME), + notmuch_config_get (notmuch, NOTMUCH_CONFIG_PRIMARY_EMAIL)); return EXIT_SUCCESS; } @@ -588,7 +588,7 @@ main (int argc, char *argv[]) } if (command->mode & NOTMUCH_COMMAND_CONFIG_OPEN) { - config = notmuch_config_open (local, config_file_name, command->mode); + config = notmuch_config_open (notmuch, config_file_name, command->mode); if (! config) { ret = EXIT_FAILURE; goto DONE;