X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/e4e04bbc328f990e36b77f508aef904d156029b1..9ee29ad6f0805dc55e63f8a04a68a1f55d0c382b:/notmuch-new.c 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);