]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
Don't create "contact" terms in the database.
[notmuch] / notmuch-new.c
index 70e55cc728b6831989854897babc8183440eaac8..6247088ac130067457d74eb1c7b4d7222ea42513 100644 (file)
@@ -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);