]> git.cworth.org Git - obsolete/notmuch-old/commit
notmuch new: Eliminate the check on the mtime of regular files before adding.
authorCarl Worth <cworth@cworth.org>
Tue, 5 Jan 2010 23:59:11 +0000 (15:59 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 03:05:29 +0000 (19:05 -0800)
commit0db0fe8d7e16c883edbb6ddfa37cb700b35ff6b8
treea7e9999d8d39c8938f020456373f7ba9811a837f
parentc68354c38fb79589ee641f97468be009e1ac2d93
notmuch new: Eliminate the check on the mtime of regular files before adding.

This check was buggy in that moving a pre-existing file into the mail
store, (where the file existed before the last run of "notmuch new"),
does not update the mtime of the file. So the message would never be
added to the database.

The fix here is not practical in the long run, (since it causes *all*
files in the mail store to be processed in every run of "notmuch new"
(!)). But this change will let us drop a stat() call that we don't
otherwise need and will help move us toward proper database-backed
detection of new files, (which will fix the bug without the
performance impact of the current fix).
notmuch-new.c