]> 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)
committerCarl Worth <cworth@cworth.org>
Wed, 29 Jun 2011 21:10:05 +0000 (14:10 -0700)
commit86e0baeb6df5509393832488c0de3520a1a5bdcb
tree138a8b0878c93e15566076916ebfb5d5cb24a7da
parent04b9ffa56f54976f6a3324a3673915a036646ea6
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.
test/notmuch-test
test/search-folder-coherence [new file with mode: 0755]