X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;h=6247088ac130067457d74eb1c7b4d7222ea42513;hp=70e55cc728b6831989854897babc8183440eaac8;hb=ed2643333c3e347318cdf78f888fc2eb4e89d2ad;hpb=5d614048b479fe998177668301da4b5c1fd9f56a diff --git a/notmuch-new.c b/notmuch-new.c index 70e55cc7..6247088a 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -167,7 +167,7 @@ add_files_recursive (notmuch_database_t *notmuch, if (S_ISREG (st->st_mode)) { /* If the file hasn't been modified since the last * add_files, then we need not look at it. */ - if (st->st_mtime > path_dbtime) { + if (path_dbtime == 0 || st->st_mtime > path_dbtime) { state->processed_files++; status = notmuch_database_add_message (notmuch, next, &message);