X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;fp=notmuch-new.c;h=a4829327ddddc2e79e35d6b22faff2ec4351dea2;hp=16b4d0225a649264c4931aba540be2b072842783;hb=b10ce6bc23002d48916b1b2f375480e7540e3164;hpb=09fa51303c6ba5adfd2431d87663523aa799288b diff --git a/notmuch-new.c b/notmuch-new.c index 16b4d022..a4829327 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -261,7 +261,7 @@ add_file (notmuch_database_t *notmuch, const char *filename, if (status) goto DONE; - status = notmuch_database_add_message (notmuch, filename, &message); + status = notmuch_database_index_file (notmuch, filename, NULL, &message); switch (status) { /* Success. */ case NOTMUCH_STATUS_SUCCESS: