]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-insert.c
cli: add global option "--uuid"
[notmuch] / notmuch-insert.c
index c277d6206712a23718cbd4c75d55c7fc3bb688e7..5205c17a290fb6cbea318d9cdfb76458953561c9 100644 (file)
@@ -536,6 +536,8 @@ notmuch_insert_command (notmuch_config_t *config, int argc, char *argv[])
                               NOTMUCH_DATABASE_MODE_READ_WRITE, &notmuch))
        return EXIT_FAILURE;
 
+    notmuch_exit_if_unmatched_db_uuid (notmuch);
+
     /* Write the message to the Maildir new directory. */
     newpath = maildir_write_new (config, STDIN_FILENO, maildir);
     if (! newpath) {