]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-insert.c
database: add n_d_index_file (deprecates n_d_add_message)
[notmuch] / notmuch-insert.c
index 2590e836e3fed337838602fb474dc8b4fe435216..648bd944a7b122c20d05358a510efa69b25bc4e1 100644 (file)
@@ -384,7 +384,7 @@ add_file (notmuch_database_t *notmuch, const char *path, tag_op_list_t *tag_ops,
     notmuch_message_t *message;
     notmuch_status_t status;
 
-    status = notmuch_database_add_message (notmuch, path, &message);
+    status = notmuch_database_index_file (notmuch, path, NULL, &message);
     if (status == NOTMUCH_STATUS_SUCCESS) {
        status = tag_op_list_apply (message, tag_ops, 0);
        if (status) {