]> git.notmuchmail.org Git - notmuch/commit
notmuch new: Proper support for renamed and deleted files.
authorCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 02:59:18 +0000 (18:59 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
commit3fa2385f7cc367725ea74a08237158bd5a4163d7
treeca12db2b2bd3add4ba0388ea849313ea63545713
parent2e96464f9705be4ec772280cad71a6c9d5831e6f
notmuch new: Proper support for renamed and deleted files.

The "notmuch new" command will now efficiently notice if any files or
directories have been removed from the mail store and will
appropriately update its database.

Any given mail message (as determined by the message ID) may have
multiple corresponding filenames, and notmuch will return one of
them. When a filen is deleted, the corresponding filename will be
removed from the message in the database. When the last filename is
removed from a message, that message will be entirely removed from the
database.

All file additions are handled before any file removals so that rename
is supported properly.
notmuch-new.c