#!/usr/bin/env bash test_description='reindexing messages' . ./test-lib.sh || exit 1 add_email_corpus test_begin_subtest 'reindex preserves message-ids' notmuch search --output=messages '*' > EXPECTED # remove duplicate file rm $MAIL_DIR/bar/18:2, notmuch reindex '*' notmuch search --output=messages '*' > OUTPUT test_expect_equal_file EXPECTED OUTPUT test_begin_subtest 'reindex preserves tags' notmuch dump > EXPECTED notmuch reindex '*' notmuch dump > OUTPUT test_expect_equal_file EXPECTED OUTPUT test_done