<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/search, branch 0.15</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.15</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.15'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2012-04-08T02:06:21Z</updated>
<entry>
<title>test: add some exclude tests</title>
<updated>2012-04-08T02:06:21Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-04-07T16:10:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6478e1bc92d60bfd85ef8259a14754e2babe150b'/>
<id>urn:sha1:6478e1bc92d60bfd85ef8259a14754e2babe150b</id>
<content type='text'>
Systematically test the exclude options for search. Also move the
search existing exclude tests into the new test. There is some overlap
between the two sets of tests but many of the existing ones are there
because they triggered bugs in the past so I have kept them to ensure
coverage.
</content>
</entry>
<entry>
<title>test: add tests for message only search</title>
<updated>2012-03-18T12:14:23Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-03-14T12:26:53Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1351aafac1e8c77e6ee3d2f41ac7445d0e07238d'/>
<id>urn:sha1:1351aafac1e8c77e6ee3d2f41ac7445d0e07238d</id>
<content type='text'>
This adds three tests for --output=messages searches. One test is for
the case when one exclude tag does not occur in the Xapian
database. This triggers a Xapian bug in some cases and causes the
whole exclusion to fail. The next commit avoids this bug.
</content>
</entry>
<entry>
<title>test: the test for the exclude code mistakenly excludes the tag "="</title>
<updated>2012-03-18T12:14:23Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-03-14T12:26:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fb36741bf3e81548a6f742c536f910c783756248'/>
<id>urn:sha1:fb36741bf3e81548a6f742c536f910c783756248</id>
<content type='text'>
The tests for the exclude code in search and count use the line
    notmuch config set search.exclude_tags = deleted
which actually sets the exclude tags to be "=" and "deleted". Remove
the "=" from this line.
</content>
</entry>
<entry>
<title>test: update search test to reflect exclude flag</title>
<updated>2012-03-02T12:31:42Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-03-01T22:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c440e597f9a32c7050fa0cc553b6166941724588'/>
<id>urn:sha1:c440e597f9a32c7050fa0cc553b6166941724588</id>
<content type='text'>
notmuch-search.c now returns all matching threads even if it the
match is a search.tag_excluded message (but with a mark indicating
this). Update the test to reflect this.
</content>
</entry>
<entry>
<title>test: add tests for new cli --no-exclude option</title>
<updated>2012-03-02T12:25:46Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-03-01T22:30:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=98f5b0f09a816dfe5bc206f8b76c87223437e63d'/>
<id>urn:sha1:98f5b0f09a816dfe5bc206f8b76c87223437e63d</id>
<content type='text'>
The tests test the new --no-exclude option to search and count.
There were no existing tests for the exclude behaviour for count so
added these too.
</content>
</entry>
<entry>
<title>config: only exclude messages if 'search.exclude_tags' is explicitly set</title>
<updated>2012-01-23T23:21:18Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2012-01-23T04:22:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ba33a15ec3ab80b175cf54d2584aa8acd1a2dc6e'/>
<id>urn:sha1:ba33a15ec3ab80b175cf54d2584aa8acd1a2dc6e</id>
<content type='text'>
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 *only* set
'search.exclude_tags' to "deleted;spam;" if we didn't find a
configuration file at all.

This patch is actually Austin Clements' work:
  id:"20120117203211.GQ16740@mit.edu"
</content>
</entry>
<entry>
<title>test: only exclude "deleted" messages from search if explicitly configured</title>
<updated>2012-01-23T23:19:26Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2012-01-23T04:22:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6795c62a50815786fd168536371cf6b9ed817535'/>
<id>urn:sha1:6795c62a50815786fd168536371cf6b9ed817535</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>search: Support automatic tag exclusions</title>
<updated>2012-01-17T01:06:35Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-01-15T00:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=42a907992823030f070fc395a174f779998ca6f5'/>
<id>urn:sha1:42a907992823030f070fc395a174f779998ca6f5</id>
<content type='text'>
This adds a "search" section to the config file and an
"auto_tag_exclusions" setting in that section.  The search and count
commands pass tag tags from the configuration to the library.
</content>
</entry>
<entry>
<title>test: add two new messages to corpus with iso-8859-1 encoding</title>
<updated>2012-01-01T03:04:01Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-01-01T02:15:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7da6733e890b913281afd5061cf5a648094a1eb4'/>
<id>urn:sha1:7da6733e890b913281afd5061cf5a648094a1eb4</id>
<content type='text'>
One is quoted printable, the other users 8 bit encoding. The latter
triggers a bug in the python bindings due to missing call to
g_mime_init. The corresponding test is marked broken in this commit.
</content>
</entry>
<entry>
<title>test: use file based comparison for search '*' test</title>
<updated>2012-01-01T02:59:58Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2012-01-01T02:52:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bebf80ea6847ebf1291fdc93e919d665f0658efc'/>
<id>urn:sha1:bebf80ea6847ebf1291fdc93e919d665f0658efc</id>
<content type='text'>
This seems a bit easier to maintain, and is more accurate since lines
are not joined together.
</content>
</entry>
</feed>
