X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-insert.c;h=648bd944a7b122c20d05358a510efa69b25bc4e1;hb=379de73603d98da6a9cc95a9af914f98bd393e95;hp=2590e836e3fed337838602fb474dc8b4fe435216;hpb=33a170e1163b39b47deafcaef863d19c0d5d62cd;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) {