X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-new.c;fp=notmuch-new.c;h=2ce3af872f0ed95eb6ab8f036e01edda302f2856;hp=378bf4c2a15a7dd2a1215b77998d8f73daad1943;hb=9d48ee2eaacce7323622e6017f7bdb01a915e885;hpb=23819e82d061502fce8d3876f3e606aa56ca6ea0 diff --git a/notmuch-new.c b/notmuch-new.c index 378bf4c2..2ce3af87 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -521,6 +521,10 @@ add_files (notmuch_database_t *notmuch, for (i = 0; i < num_fs_entries && ! interrupted; i++) { entry = fs_entries[i]; + /* Ignore special directories early. */ + if (_special_directory (entry->d_name)) + continue; + /* Ignore files & directories user has configured to be ignored */ if (_entry_in_ignore_list (entry->d_name, state)) { if (state->debug)