test: only exclude "deleted" messages from search if explicitly configured
authorPieter Praet <pieter@praet.org>
Mon, 23 Jan 2012 04:22:33 +0000 (05:22 +0100)
committerDavid Bremner <bremner@debian.org>
Mon, 23 Jan 2012 23:19:26 +0000 (19:19 -0400)
commit6795c62a50815786fd168536371cf6b9ed817535
tree6cc2df2fd37b549674e5e214f1914937b3e4469d
parent649a9f5f3a3749374284dc757250345db8d5c7ad
test: only exclude "deleted" messages from search if explicitly configured

Currently, the 'search.exclude_tags' option is automatically set to
"deleted;spam;" if it's missing from the config file.

This violates the Principle of Least Surprise, so update the tests to
*only* expect the exclusion of messages which are tagged "deleted" if the
'search.exclude_tags' option is explicitly set *and* contains that tag.
test/search