aboutsummaryrefslogtreecommitdiff
path: root/lib/database.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-01-05 15:59:11 -0800
committerCarl Worth <cworth@cworth.org>2010-01-06 10:32:06 -0800
commitdde214c768a948222786b4c2b5ec404a4ffacc8c (patch)
tree5d59fdcb90c87d7755c7e940d346fbc81143fd11 /lib/database.cc
parent2ce46c31fe44ea1c7fc75a7da83e1278d06c28e1 (diff)
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).
Diffstat (limited to 'lib/database.cc')
0 files changed, 0 insertions, 0 deletions