]> git.cworth.org Git - obsolete/notmuch-old/commit
notmuch new: Remove an unnecessary stat of every regular file in the mail store.
authorCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 00:06:46 +0000 (16:06 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 03:05:29 +0000 (19:05 -0800)
commit3df737bc4addfce71c647792ee668725e5221a98
tree2d896d15170ffd0a594e7357ed340663b7a29687
parent0db0fe8d7e16c883edbb6ddfa37cb700b35ff6b8
notmuch new: Remove an unnecessary stat of every regular file in the mail store.

We were previousl using the stat for two reasons. One was to obtain
the mtime of the file. This usage was removed in the previous commit,
(since the mtime is unreliable in the case of a file being moved into
the mail store).

The second reason was to identify regular and directory file
types. But this information is already available in the result we get
from scandir.

What's left is simply a stat for each directory in the mailstore,
(which we are still using to compare filesystem mtime with the mtime
stored in the database).
notmuch-new.c