]> git.notmuchmail.org Git - notmuch/commit
add_files_recursive: Make the maildir detection more efficient.
authorCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 00:42:14 +0000 (16:42 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
commit2a98b1d48795e66754435e06e28cdf58ab1dd154
tree80c9638dbc9978eeec78d3a65b1898a4c55ab4c0
parent28ce73848d98d8ee2b661733402e2c10b13418d5
add_files_recursive: Make the maildir detection more efficient.

Previously, we were re-scanning the entire list of entries for every
directory entry. Instead, we can simply check if the entries look like
a maildir once, up-front.
notmuch-new.c