X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=514e06a4d1f31326a805d1cabef4fb6631ab4b9d;hp=ee786a3bbbb9ada837dcab727b43392ff59280c4;hb=f76d8f82dd004cf14426a91e8a80dcd2a4b97317;hpb=5a3b42fb8c556397841b86c5fda1c4554dab253a diff --git a/notmuch-new.c b/notmuch-new.c index ee786a3b..514e06a4 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -1009,10 +1009,11 @@ notmuch_new_command (notmuch_config_t *config, int argc, char *argv[]) fputs (status_string, stderr); free (status_string); } - return EXIT_FAILURE; } + notmuch_exit_if_unmatched_db_uuid (notmuch); + if (notmuch_database_needs_upgrade (notmuch)) { time_t now = time (NULL); struct tm *gm_time = gmtime (&now);