/* This write is "opportunistic", so it's okay to ignore the
* result. It is not required for correctness, and if it does
/* This write is "opportunistic", so it's okay to ignore the
* result. It is not required for correctness, and if it does
-notmuch_insert_command (unused(notmuch_config_t *config),notmuch_database_t *notmuch, int argc, char *argv[])
+notmuch_insert_command (notmuch_database_t *notmuch, int argc, char *argv[])
- notmuch_process_shared_options (argv[0]);
-
-
- /* XXX TODO replace this use of DATABASE_PATH with something specific to hooks */
- db_path = notmuch_config_get (notmuch, NOTMUCH_CONFIG_DATABASE_PATH);
+ notmuch_process_shared_options (notmuch, argv[0]);
- maildir = talloc_asprintf (local, "%s/%s", db_path, folder);
+ maildir = talloc_asprintf (local, "%s/%s", mail_root, folder);
if (status != NOTMUCH_STATUS_SUCCESS) {
fprintf (stderr, "Error: Failed to process index options. (%s)\n",
notmuch_status_to_string (status));
if (status != NOTMUCH_STATUS_SUCCESS) {
fprintf (stderr, "Error: Failed to process index options. (%s)\n",
notmuch_status_to_string (status));
- status = add_file (notmuch, newpath, tag_ops, synchronize_flags, keep, indexing_cli_choices.opts);
+ status = add_file (notmuch, newpath, tag_ops, synchronize_flags, keep, indexopts);