X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=notmuch-insert.c;h=648bd944a7b122c20d05358a510efa69b25bc4e1;hb=b10ce6bc23002d48916b1b2f375480e7540e3164;hp=2590e836e3fed337838602fb474dc8b4fe435216;hpb=09fa51303c6ba5adfd2431d87663523aa799288b;p=notmuch diff --git a/notmuch-insert.c b/notmuch-insert.c index 2590e836..648bd944 100644 --- a/notmuch-insert.c +++ b/notmuch-insert.c @@ -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) {