- status = add_files_recursive (notmuch, next, st, state);
+ if ((strcmp (entry->d_name, "cur") == 0) ||
+ (strcmp (entry->d_name, "new") == 0) ||
+ (strcmp (entry->d_name, "tmp") == 0)) {
+ status = add_files_recursive (notmuch, next, tag, st, state);
+ } else {
+ status = add_files_recursive (notmuch, next, entry->d_name, st, state);
+ }