test_expect_equal_file initial-dump OUTPUT
test_begin_subtest 'reindex preserves tags with special prefixes'
-notmuch tag +attachment2 +encrypted2 +signed2 '*'
+notmuch tag +attachment2 +encrypted2 +signed2 '*'
notmuch dump > EXPECTED
notmuch reindex '*'
notmuch dump > OUTPUT
-notmuch tag -attachment2 -encrypted2 -signed2 '*'
+notmuch tag -attachment2 -encrypted2 -signed2 '*'
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest 'reindex moves a message between threads'