<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T050-new.sh, branch 0.21</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.21</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.21'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2015-10-14T10:55:41Z</updated>
<entry>
<title>cli: delete directory documents on directory removal</title>
<updated>2015-10-14T10:55:41Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2015-09-25T20:48:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e26d99dc7b02f33299c281f97a13deaef802bc7a'/>
<id>urn:sha1:e26d99dc7b02f33299c281f97a13deaef802bc7a</id>
<content type='text'>
There was a problem with the directory documents being left behind when
the filesystem directory was removed. This was worked around in [1].
However, that ignored the fact that the directory documents are also
still listed by notmuch_directory_get_child_directories() leading to
confusing results when running notmuch new. The directory documents are
found and queued for removal over and over again.

Fix the problem for real by removing the directory documents. This fixes
the tests flagged as broken in [2].

The (non-deterministic) hack test from [3] also still passes with this
change.

[1] commit acd66cdec075312944e527febd46382e54d99367
[2] commit ed9ceda623d3f22fb66365b33db63c5c982067d3
[3] id:1441445731-4362-1-git-send-email-jani@nikula.org
</content>
</entry>
<entry>
<title>test: flag one more notmuch new test as broken</title>
<updated>2015-10-10T12:13:02Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2015-09-25T20:48:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0e03ff389443aa062d30e6949bb3220563c474be'/>
<id>urn:sha1:0e03ff389443aa062d30e6949bb3220563c474be</id>
<content type='text'>
Drop the test update added in [1] and mark the test as broken, like the
tests flagged as broken in [2]. These all reflect the same underlying
breakage with (lack of) directory deletion.

[1] commit e4e04bbc328f990e36b77f508aef904d156029b1
[2] commit ed9ceda623d3f22fb66365b33db63c5c982067d3
</content>
</entry>
<entry>
<title>test: make script exit (1) if it "fails" to source (.) a file</title>
<updated>2015-08-07T19:56:39Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2015-08-06T09:13:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=02a2eeb427d6b424029f6e5e5ddad4c6ec987741'/>
<id>urn:sha1:02a2eeb427d6b424029f6e5e5ddad4c6ec987741</id>
<content type='text'>
The files (test) scripts source (with builtin command `.`) provides
information which the scripts depend, and without the `source` to
succeed allowing script to continue may lead to dangerous situations
(e.g. rm -rf "${undefined_variable}"/*).

At the end of all source (.) lines construct ' || exit 1' was added;
In our case the script script will exit if it cannot find (or read) the
file to be sourced. Additionally script would also exits if the last
command of the sourced file exited nonzero.
</content>
</entry>
<entry>
<title>test: add debugging output to notmuch-new tests, mark 5 as broken</title>
<updated>2015-08-04T19:00:09Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-08-04T06:48:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ed9ceda623d3f22fb66365b33db63c5c982067d3'/>
<id>urn:sha1:ed9ceda623d3f22fb66365b33db63c5c982067d3</id>
<content type='text'>
I marked the tests where I really couldn't understand the output as
broken. It could also be that I don't understand how directory removal
is supposed to work.
</content>
</entry>
<entry>
<title>cli/new: add more debugging output</title>
<updated>2015-08-04T18:59:58Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-08-04T06:48:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e4e04bbc328f990e36b77f508aef904d156029b1'/>
<id>urn:sha1:e4e04bbc328f990e36b77f508aef904d156029b1</id>
<content type='text'>
Try to narrow down what part of the code adds files and directories to
the queue(s) to be deleted.

Update one test. The output is slightly confusing, but I believe it is
correct, resulting from a directory being discovered but containing only ignored files.
</content>
</entry>
<entry>
<title>test: don't claim single message mbox support is going away</title>
<updated>2015-08-04T18:59:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-08-04T06:48:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e2fb06d369bf7a532b4438ab576ca2969a8882a3'/>
<id>urn:sha1:e2fb06d369bf7a532b4438ab576ca2969a8882a3</id>
<content type='text'>
We gave up on this.
</content>
</entry>
<entry>
<title>test: Add two tests for error output from notmuch_database_open</title>
<updated>2015-03-15T19:27:20Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-03-14T07:32:22Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=baf93369f6a204bc16740358a56af95cbaa1f9b5'/>
<id>urn:sha1:baf93369f6a204bc16740358a56af95cbaa1f9b5</id>
<content type='text'>
This is arguably testing the same thing twice, but in the brave new
future where we don't use printf anymore, each subcommand will be
responsible for handling the output on it's own.
</content>
</entry>
<entry>
<title>lib: drop the deprecation message for single-message mbox files</title>
<updated>2015-01-01T15:47:47Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-11-23T11:15:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c82a1745ac6fd83e025803a06711e913c86e6f47'/>
<id>urn:sha1:c82a1745ac6fd83e025803a06711e913c86e6f47</id>
<content type='text'>
We generally do not support mbox files, but for historical reasons
we've supported single-message mbox files, with a deprecation
message. We've tried dropping the support altogether, but backed out
of it because we'd need to stop indexing them, while keeping support
for previously indexed files. This would be more complicated than
simply supporting single-message mbox files. Therefore, drop the
deprecation message, and just silently accept single-message mboxes.
</content>
</entry>
<entry>
<title>lib: resurrect support for single-message mbox files</title>
<updated>2014-06-14T01:59:04Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-06-05T06:34:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0cc0144875875fe974fe0851b5c2c21d63d9b06d'/>
<id>urn:sha1:0cc0144875875fe974fe0851b5c2c21d63d9b06d</id>
<content type='text'>
This is effectively a revert of

commit 6812136bf576d894591606d9e10096719054d1f9
Author: Jani Nikula &lt;jani@nikula.org&gt;
Date:   Mon Mar 31 00:21:48 2014 +0300

    lib: drop support for single-message mbox files

The intention was to drop support for indexing new single-message mbox
files (and whether that was a good idea in the first place is
arguable). However this inadvertently broke support for reading
headers from previously indexed single-message mbox files, which is
far worse.

Distinguishing between the two cases would require more code than
simply bringing back support for single-message mbox files.
</content>
</entry>
<entry>
<title>lib: drop support for single-message mbox files</title>
<updated>2014-04-05T15:52:42Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-03-30T21:21:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6812136bf576d894591606d9e10096719054d1f9'/>
<id>urn:sha1:6812136bf576d894591606d9e10096719054d1f9</id>
<content type='text'>
We've supported mbox files containing a single message for historical
reasons, but the support has been deprecated, with a warning message
while indexing, since Notmuch 0.15. Finally drop the support, and
consider all mbox files non-email.
</content>
</entry>
</feed>
