]> git.cworth.org Git - notmuch/blobdiff - test/T566-lib-message.sh
test: replace deprecated use of notmuch_database_open_verbose
[notmuch] / test / T566-lib-message.sh
index 8b61d18215af0698803c0c0b4b4fab0762a6f3e4..b6a9e53673c6978f93bd9409bb8b7232c5a019eb 100755 (executable)
@@ -29,7 +29,9 @@ int main (int argc, char** argv)
    notmuch_message_t *message = NULL;
    const char *id = "1258471718-6781-1-git-send-email-dottedmag@dottedmag.net";
 
-   stat = notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_WRITE, &db, &msg);
+   stat = notmuch_database_open_with_config (argv[1],
+                                            NOTMUCH_DATABASE_MODE_READ_WRITE,
+                                            NULL, NULL, &db, &msg);
    if (stat != NOTMUCH_STATUS_SUCCESS) {
      fprintf (stderr, "error opening database: %d %s\n", stat, msg ? msg : "");
      exit (1);