notmuch new: Detect deleted (renamed) files and directories.
authorCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 01:43:03 +0000 (17:43 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
commit03d5175001185a7eb0b3219665ea0974147da8cc
tree9fedd6d5e5ece2658df8ca8d0aa37cc5f0903988
parent2a98b1d48795e66754435e06e28cdf58ab1dd154
notmuch new: Detect deleted (renamed) files and directories.

This takes advantage of the notmuch_directory_t interfaces added
recently (with cooresponding storage of directory documents in the
database) to detect when files or entire directories are deleted or
renamed within the mail store.

This also fixes the recent regression where *all* files would be
processed by every run of "notmuch new", (now only new files are
processed once again).

The deleted files and directories are only detected so far. They
aren't properly removed from the database.
notmuch-new.c