<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test, branch 0.8_rc0</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.8_rc0</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.8_rc0'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-09-06T01:57:39Z</updated>
<entry>
<title>test: overhaul multipart test to test for improved message/rfc822 handling</title>
<updated>2011-09-06T01:57:39Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-09-05T19:01:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c8598d9a99ca003cd905b4b28d16bda2b9ca785b'/>
<id>urn:sha1:c8598d9a99ca003cd905b4b28d16bda2b9ca785b</id>
<content type='text'>
The main goal of this overhaul is to define how message/rfc822 parts
should be handled.  message/rfc822 parts should be output in a similar
fashion to the outer message, including some subset of the rfc822
headers.  The following decisions about formatting of message/rfc822
parts were made:

The format and content of message/rfc822 parts shall be as similar as
possible to that of full messages.  In particular, for formatted
outputs, the "content" of rfc822 part output should include "headers"
and "body" fields).

The "body" field shall include the body of the message.

The "headers" field shall include the following headers, since these
are the ones available from the GMimeMessage:

  "From"
  "To"
  "Cc"
  "Subject"
  "Date"

However, for the case of --format=raw the raw rfc822 should be output,
including all headers.

A subset of relevant headers shall be output in reply.

The test embedded rfc822 message is also modified to be itself
multipart, so we can more fully test how all sub parts of the message
part are output.

Note added by Committer:

Currently, expect one test (--format=raw --part=3, rfc822 part) to fail.
</content>
</entry>
<entry>
<title>test: Fix date in test message in multipart test.</title>
<updated>2011-09-05T11:54:56Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-06-06T00:29:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ec2b0a98cc2b02fad99455bca6cf896d7b7e88a6'/>
<id>urn:sha1:ec2b0a98cc2b02fad99455bca6cf896d7b7e88a6</id>
<content type='text'>
The test message date, "Tue, 05 Jan 2001 15:43:57 -0000", is not
actually a real date.  05 Jan 2001 was in fact a Friday, not a
Tuesday.  Date parsers (such as "date" in coreutils) will return "Fri"
as the day for this string, even if "Tue" is specified.

Also, the time zone "-0000" is actually always returned as "+0000", so
we change that here was well.

This will be relevant for later patches when we begin parsing rfc822
part headers, where gmime returns a parsed date string.

If we do want to test date parsing, we should do that in a separate
test.
</content>
</entry>
<entry>
<title>test: some small fixes to multipart test</title>
<updated>2011-09-05T11:54:56Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-06-06T00:29:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ea3a26f590b1d1957907ab83b17a0fe95beb0e3d'/>
<id>urn:sha1:ea3a26f590b1d1957907ab83b17a0fe95beb0e3d</id>
<content type='text'>
There were two "--format=text --part=0" tests.  One of them was
supposed to be a test for "--format=text --part=1".

There were also two errant "test_expect_equal_file OUTPUT EXPECTED"
lines, that are removed here.
</content>
</entry>
<entry>
<title>emacs: Fix to unconditionally display subject changes in collapsed thread view</title>
<updated>2011-07-01T09:00:25Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-07-01T08:44:39Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=580de27177de5cd6c5cbc9cc3759ce320216dd5b'/>
<id>urn:sha1:580de27177de5cd6c5cbc9cc3759ce320216dd5b</id>
<content type='text'>
The feature to show subject changes in the collapsed thread view was
originally added (8ab433607) with an option
(notmuch-show-always-show-subject) to display the subject
for all messages, even when there was no change.

The subsequent commit (4f04d273) changed the sense of the test (or to
and) and the name of the controlling variable
(notmuch-show-elide-same-subject).

But this commit is broken in a few ways:

  1. The original definition of notmuch-show-always-show-subject was
     left around

     But the variable isn't actually used in the code at all, so it
     just adds clutter and confusion to the customization interface.

  2. The name and description of the controlling variable doesn't
     match the implementation

     The name suggests that setting the variable to t will cause
     repeated subjects to be elided, (suggesting that when it is nil
     all subjects will be shown).

     However, when the variable is nil, no subjects are shown. So a
     correct name for the variable in this sense would be
     notmuch-show-subject-changes.

Showing subject changes is a useful feature, and should be on by
default. (We don't want to bury generally useful features behind
customizations that users have to find).

Rather than fixing the name of the variable and changing its default
value, here we remove the condition entirely, such that the feature is
enabled unconditionally.

So both the currently-used variable and the stale definition of the
formerly-used are removed.

Also, the one relevant test-suite result is updated, (showing the
intial subject of a collapsed thread, and no subject display for later
messages that do not change the subject).
</content>
</entry>
<entry>
<title>test: document test_expect_equal_file</title>
<updated>2011-06-29T22:36:43Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-06-29T17:06:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a31ad0bd01570307d18b7fbd56b7bcdfb22e5b63'/>
<id>urn:sha1:a31ad0bd01570307d18b7fbd56b7bcdfb22e5b63</id>
<content type='text'>
This test was not properly documented when it was originally added (my
bad).
</content>
</entry>
<entry>
<title>test: Nix increment_mtime.</title>
<updated>2011-06-29T22:26:45Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2011-06-29T07:10:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=47afbdfb7995d703987a273bccc3a60fedc6dd08'/>
<id>urn:sha1:47afbdfb7995d703987a273bccc3a60fedc6dd08</id>
<content type='text'>
With the fix for the mtime race, this workaround is no longer
necessary.
</content>
</entry>
<entry>
<title>test: revert non-intentional changes introduced in eb4cf465</title>
<updated>2011-06-29T21:20:57Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2011-06-29T20:23:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ec1b568929f53b99362d6b254085da03231a2a26'/>
<id>urn:sha1:ec1b568929f53b99362d6b254085da03231a2a26</id>
<content type='text'>
eb4cf465 introduces changes which weren't part of the submitted
patch (id:"87liwlip2j.fsf@gmail.com"), presumably made during
resolving merge conflicts.

The first one causes the title of a test to be printed a second time,
in place of the correct title:

  PASS   Message with .. in Message-Id:
  PASS   Message with .. in Message-Id:

instead of:

  PASS   Message with .. in Message-Id:
  PASS   Sending a message via (fake) SMTP

The second one is simply the insertion of a line break, so no harm there.

This commit reverts both changes, as they were clearly accidental.

Signed-off-by: Pieter Praet &lt;pieter@praet.org&gt;
</content>
</entry>
<entry>
<title>test: Use increment_mtime rather than sleep</title>
<updated>2011-06-29T21:11:38Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-29T21:11:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=55a78d5dbd96b80939458d9d6cc8a536b1befa87'/>
<id>urn:sha1:55a78d5dbd96b80939458d9d6cc8a536b1befa87</id>
<content type='text'>
The sleep was to force the directory's mtime to advance between the
previous notmuch new and the subsequent rm;notmuch new.

The current convention is to use the existing increment_mtime function
for this purpose, (which avoids the test suite being slowed down by
calls to sleep).

Thanks to Austin Clements for noticing this undesired sleep.
</content>
</entry>
<entry>
<title>test:Folder tags shouldn't match after removal of file in given folder</title>
<updated>2011-06-29T21:10:05Z</updated>
<author>
<name>Mark Anderson</name>
<email>ma.skies@gmail.com</email>
</author>
<published>2011-06-27T17:12:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=86e0baeb6df5509393832488c0de3520a1a5bdcb'/>
<id>urn:sha1:86e0baeb6df5509393832488c0de3520a1a5bdcb</id>
<content type='text'>
Test for bug.  Current stemming support for notmuch adds extra terms
to the DB which aren't removed when the file renames are detected.

When folder tags are added to a message, Xapian terms for both XFOLDER
and ZXFOLDER are generated.  When one of the filenames are
renamed/removed, only the XFOLDER tags are removed, leaving it possible
for a match on a folder: tag that was previously but is no longer a
match in the maildir.
</content>
</entry>
<entry>
<title>test: fix tests after notmuch show output changes related to filenames</title>
<updated>2011-06-29T03:06:20Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-05-28T22:03:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f74c4bc2f3ceedc6b6f3501c552df6c77fce9c00'/>
<id>urn:sha1:f74c4bc2f3ceedc6b6f3501c552df6c77fce9c00</id>
<content type='text'>
Adding the filename propery alongside ID and Content-type.

This makes the test suite pass again after the recent change.
</content>
</entry>
</feed>
