X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-insert.c;fp=notmuch-insert.c;h=5205c17a290fb6cbea318d9cdfb76458953561c9;hp=c277d6206712a23718cbd4c75d55c7fc3bb688e7;hb=f76d8f82dd004cf14426a91e8a80dcd2a4b97317;hpb=5a3b42fb8c556397841b86c5fda1c4554dab253a diff --git a/notmuch-insert.c b/notmuch-insert.c index c277d620..5205c17a 100644 --- a/notmuch-insert.c +++ b/notmuch-insert.c @@ -536,6 +536,8 @@ notmuch_insert_command (notmuch_config_t *config, int argc, char *argv[]) NOTMUCH_DATABASE_MODE_READ_WRITE, ¬much)) 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) {