<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/maildir-sync, branch 0.6</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.6</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.6'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-05-27T21:03:28Z</updated>
<entry>
<title>test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portability</title>
<updated>2011-05-27T21:03:28Z</updated>
<author>
<name>Joel Borggrén-Franck</name>
<email>jbf@codehouse.se</email>
</author>
<published>2010-12-01T20:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3fa843216c918fe4a6151e55947cf3a7f46fcdb5'/>
<id>urn:sha1:3fa843216c918fe4a6151e55947cf3a7f46fcdb5</id>
<content type='text'>
Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
systems running on bash &lt; 4 can prepend bash &gt;= 4 to path before
running the tests.
</content>
</entry>
<entry>
<title>tags_to_maildir_flags: Fix to preserve existing, unsupported flags</title>
<updated>2010-11-12T00:36:02Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-12T00:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=96d99c383785dec67443ff1b45e2d2f8437398fa'/>
<id>urn:sha1:96d99c383785dec67443ff1b45e2d2f8437398fa</id>
<content type='text'>
This is to prevent notmuch from destroying any information the user
has encoded as flags in the maildir filename. Tests are also added to
the test suite to verify the documented behavior.
</content>
</entry>
<entry>
<title>notmuch_message_tags_to_maildir_flags: Do nothing outside of "new" and "cur"</title>
<updated>2010-11-11T22:32:17Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-11T22:32:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=95dd5fe5d7e9cd8169a6e3174ea27376acd92870'/>
<id>urn:sha1:95dd5fe5d7e9cd8169a6e3174ea27376acd92870</id>
<content type='text'>
Some people use notmuch with non-maildir files, (for example, email
messages in MH format, or else cool things like using sluk[*] to suck
down feeds into a format that notmuch can index).

To better support uses like that, don't do any renaming for files that
are not in a directory named either "new" or "cur".

[*] https://github.com/krl/sluk/
</content>
</entry>
<entry>
<title>Enable maildir synchronization by default.</title>
<updated>2010-11-11T12:11:21Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-11T12:11:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=28708d2bd399ed1dc7968918833df3683c7accec'/>
<id>urn:sha1:28708d2bd399ed1dc7968918833df3683c7accec</id>
<content type='text'>
This is a useful feature that most people should want, so enable it by
default, (still allowing customization to disable it of course).
</content>
</entry>
<entry>
<title>test: Drop test for propagating flag changes from one file to another</title>
<updated>2010-11-11T11:47:11Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-11T11:43:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=483f422699cc480b856ceeac77a4fa5d11f82ea0'/>
<id>urn:sha1:483f422699cc480b856ceeac77a4fa5d11f82ea0</id>
<content type='text'>
There's nothing in the current API documentation that would suggest
the behavior being tested here. Attempt to implement this could have
some nasty side effects, (such as notmuch_message_maildir_flags_to_tags
implicitly calling notmuch_message_tags_to_maildir_flags and maybe
even opening up some bad looping possibilities).

Much better to stick with what we have documented, which we believe will
actually be useful, (and easy enough to comprehend).
</content>
</entry>
<entry>
<title>test: Add a new test that removal of a maildir flag also changes tags</title>
<updated>2010-11-11T11:40:19Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-11T10:43:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0100df8edbc84d95210c369b9eb560b87c2d36be'/>
<id>urn:sha1:0100df8edbc84d95210c369b9eb560b87c2d36be</id>
<content type='text'>
This test exposes an existing bug, so is currently failing.
</content>
</entry>
<entry>
<title>test: Rework recently-added additional maildir-sync tests</title>
<updated>2010-11-11T11:40:19Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-10T20:36:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0b6349d70557589563f6eb2a23c2a1fa1330e54a'/>
<id>urn:sha1:0b6349d70557589563f6eb2a23c2a1fa1330e54a</id>
<content type='text'>
These needed to be changed to be brought up to the current state of
the maildir-sync tests. This includes style changes, but also the
elimination of any assumption about pre-existing message filenames,
(such as msg-003) which actually don't exist anymore.

Also, the known broken tests are changed to emit FAIL rather than
BROKEN simply to make them easier to fix, (so that they print the
current problems rather than hiding them).

Finally, an additional test is added to ensure that when a duplicate
file is added without flags, it doesn't invalidate flags from other
duplicates, (instead the flags are effectively merged).
</content>
</entry>
<entry>
<title>test: More maildir synchronization tests</title>
<updated>2010-11-11T10:35:03Z</updated>
<author>
<name>Michal Sojka</name>
<email>sojkam1@fel.cvut.cz</email>
</author>
<published>2010-11-10T10:27:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2638fb75653a6cb65b92429c82e27462aeb34fc6'/>
<id>urn:sha1:2638fb75653a6cb65b92429c82e27462aeb34fc6</id>
<content type='text'>
Add maildir synchronization tests for multiple messages with the same
message-id. As this is not yet implemented in notmuch, some of these
teste are marked as BROKEN.

I use $(&lt; ) operator to avoid fiddling with stripped trailing newlines
from test results which happens when output+=$(command) is used.
</content>
</entry>
<entry>
<title>test: Rework testing of maildir-synchronization feature.</title>
<updated>2010-11-11T10:35:03Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-09T23:36:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=882b994c173475f8973d5f5a1c0d1c25e4f93818'/>
<id>urn:sha1:882b994c173475f8973d5f5a1c0d1c25e4f93818</id>
<content type='text'>
This change reworks these tests in several ways:

1. Bring tests into "new" test style preferring test_expect_equal over
   test_expect_success in almost all cases.

2. Don't emit test results for intermediate items not actually being
   tested, (things like "no new messages", "search for message",
   etc.). Those things are already covered by existing tests such as
   "basic" or "search" and only serve to obscure what's actually being
   tested.

3. Change sense of the test showing failure to rename a file from
   "new" to "cur" when "cur" doesn't exist.

   In this case, notmuch should detect that this is not a maildir and
   should not attempt to do any renaming of the file.

4. Extend dump/restore test to also exercise addition of tag, not just
   removal.

Both items #3 and #4 above show shortcomings in the current
implementation. These are currently resulting in test results of FAIL
and indicate bugs that need to be fixed.
</content>
</entry>
<entry>
<title>Tests for maildir synchronization</title>
<updated>2010-11-10T21:09:32Z</updated>
<author>
<name>Michal Sojka</name>
<email>sojkam1@fel.cvut.cz</email>
</author>
<published>2010-10-31T21:29:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=736ac42c45f62103e99ef18ef06b201d0bcd546f'/>
<id>urn:sha1:736ac42c45f62103e99ef18ef06b201d0bcd546f</id>
<content type='text'>
Signed-off-by: Michal Sojka &lt;sojkam1@fel.cvut.cz&gt;
</content>
</entry>
</feed>
