]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
Merge remote branch 'jukie/vim'
[notmuch] / notmuch-new.c
index 8172b498a3fbd43870367171dccea3a6542c45af..ba5bb5ac7b7f202ccbd7831d2105e780fb03eb36 100644 (file)
@@ -149,7 +149,7 @@ add_files_recursive (notmuch_database_t *notmuch,
        /* If this directory hasn't been modified since the last
         * add_files, then we only need to look further for
         * sub-directories. */
-       if (path_mtime <= path_dbtime && entry->d_type != DT_DIR)
+       if (path_mtime <= path_dbtime && entry->d_type == DT_REG)
            continue;
 
        /* Ignore special directories to avoid infinite recursion.
@@ -159,6 +159,7 @@ add_files_recursive (notmuch_database_t *notmuch,
         * user specify files to be ignored. */
        if (strcmp (entry->d_name, ".") == 0 ||
            strcmp (entry->d_name, "..") == 0 ||
+           strcmp (entry->d_name, "tmp") == 0 ||
            strcmp (entry->d_name, ".notmuch") ==0)
        {
            continue;