]> git.notmuchmail.org Git - notmuch/commit
test:Folder tags shouldn't match after removal of file in given folder
authorMark Anderson <ma.skies@gmail.com>
Mon, 27 Jun 2011 17:12:24 +0000 (11:12 -0600)
committerDavid Bremner <bremner@debian.org>
Thu, 30 Jun 2011 00:58:19 +0000 (21:58 -0300)
commitc04e6f84d3de7236891696b7c6cc009e7f5e976c
treefe8281e9f906a09aea002860964d2bada93be98a
parentfa0c0d0e668961aa9dce884ee7b325095b44ca47
test:Folder tags shouldn't match after removal of file in given folder

Test for bug.  Current stemming support for notmuch adds extra terms
to the DB which aren't removed when the file renames are detected.

When folder tags are added to a message, Xapian terms for both XFOLDER
and ZXFOLDER are generated.  When one of the filenames are
renamed/removed, only the XFOLDER tags are removed, leaving it possible
for a match on a folder: tag that was previously but is no longer a
match in the maildir.
(cherry picked from commit 86e0baeb6df5509393832488c0de3520a1a5bdcb)
test/notmuch-test
test/search-folder-coherence [new file with mode: 0755]