]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/ruby/database.c
database: add n_d_index_file (deprecates n_d_add_message)
[notmuch] / bindings / ruby / database.c
index 12e6bab7b095388e356e25507146283b3da61e03..416eb709f19d231bfdf6460c37a8e2262fad24af 100644 (file)
@@ -291,7 +291,7 @@ notmuch_rb_database_add_message (VALUE self, VALUE pathv)
     SafeStringValue (pathv);
     path = RSTRING_PTR (pathv);
 
-    ret = notmuch_database_add_message (db, path, &message);
+    ret = notmuch_database_index_file (db, path, NULL, &message);
     notmuch_rb_status_raise (ret);
     return rb_assoc_new (Data_Wrap_Struct (notmuch_rb_cMessage, NULL, NULL, message),
         (ret == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID) ? Qtrue : Qfalse);