+ config = notmuch_config_open (ctx, NULL, NULL);
+ if (config == NULL)
+ return 1;
+
+ notmuch = notmuch_database_open (notmuch_config_get_database_path (config),
+ NOTMUCH_DATABASE_MODE_READ_ONLY);
+ if (notmuch == NULL)
+ return 1;
+
+ argc--; argv++; /* skip subcommand argument */
+
+ if (argc && strcmp (argv[0], "--") != 0) {
+ fprintf (stderr, "Warning: the output file argument of dump is deprecated.\n");