<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/reply, branch debian/0.17-5</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.17-5</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.17-5'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-08-20T07:14:25Z</updated>
<entry>
<title>test: Canonicalize RFC 2047 encoding and charset</title>
<updated>2013-08-20T07:14:25Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-08-19T14:40:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e41cd1c518d7c5af565d4bed284bbd8a66366da1'/>
<id>urn:sha1:e41cd1c518d7c5af565d4bed284bbd8a66366da1</id>
<content type='text'>
RFC 2047 states that the encoding and charset in an encoded word are
case-insensitive, so force them to lower case in the reply test.  This
fixes an issue caused by GMime versions (somewhere between 2.6.10 and
2.6.16), which changed the capitalization of the encoding.
</content>
</entry>
<entry>
<title>reply: Use RFC 2822/MIME wholly for text format template</title>
<updated>2013-08-17T07:06:08Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-08-16T15:35:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=dc51bf0ad4ce84414e79d2f30752502f7c0d46c0'/>
<id>urn:sha1:dc51bf0ad4ce84414e79d2f30752502f7c0d46c0</id>
<content type='text'>
Previously, reply's default text format used an odd mix of RFC 2045
MIME encoding for the reply template's body and some made-up RFC
2822-like UTF-8 format for the headers.  The intent was to present the
headers to the user in a nice, un-encoded format, but this assumed
that whatever ultimately sent the email would RFC 2047-encode the
headers, while at the same time the body was already RFC 2045 encoded,
so it assumed that whatever sent the email would *not* re-encode the
body.

This can be fixed by either producing a fully decoded UTF-8 reply
template, or a fully encoded MIME-compliant RFC 2822 message.  This
patch does the latter because it is

a) Well-defined by RFC 2822 and MIME (while any UTF-8 format would be
   ad hoc).

b) Ready to be piped to sendmail.  The point of the text format is to
   be minimal, so a user should be able to pop up the template in
   whatever editor they want, edit it, and push it to sendmail.

c) Consistent with frontend capabilities.  If a frontend has the
   smarts to RFC 2047 encode the headers before sending the mail, it
   probably has the smarts to RFC 2047 decode them before presenting
   the template to a user for editing.

Also, as far as I know, nothing automated consumes the reply text
format, so changing this should not cause serious problems.  (And if
anything does still consume this format, it probably gets these
encoding issues wrong anyway.)
</content>
</entry>
<entry>
<title>reply: Remove extraneous space from generated References</title>
<updated>2013-08-17T07:05:44Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-08-16T15:35:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6cdab6e0b77041791f70345ac729d63d865bae5e'/>
<id>urn:sha1:6cdab6e0b77041791f70345ac729d63d865bae5e</id>
<content type='text'>
Previously, the References header code seemed to assume
notmuch_message_get_header would return NULL if the header was not
present, but it actually returns "".  As a result of this, it was
inserting an unnecessary space when concatenating an empty or missing
original references header with the new reference.

This shows up in only two tests because the text reply format later
passes the whole reply template through g_mime_filter_headers, which
has the side effect of stripping out this extra space.
</content>
</entry>
<entry>
<title>reply: Test replying to messages with RFC 2047-encoded headers</title>
<updated>2013-08-17T07:04:07Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2013-08-16T15:35:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ad7bb423fb26f2b2fb801d3c2e3ceef9c7e3e622'/>
<id>urn:sha1:ad7bb423fb26f2b2fb801d3c2e3ceef9c7e3e622</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: add tests for notmuch reply From guessing</title>
<updated>2012-05-25T00:56:35Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-05-24T05:15:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2f1a11268f2d230d0b3786a158b238e45090b768'/>
<id>urn:sha1:2f1a11268f2d230d0b3786a158b238e45090b768</id>
<content type='text'>
Add tests for picking up user's From address from fallback headers
Envelope-To, X-Original-To, and Delivered-To.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>test: whitespace-cleanup for most test/* files</title>
<updated>2012-01-22T13:12:12Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-01-11T16:53:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=da9f39216555934327a91ebc6b3b726b0a989dcf'/>
<id>urn:sha1:da9f39216555934327a91ebc6b3b726b0a989dcf</id>
<content type='text'>
Used emacs (whitespace-cleanup) function to "cleanup blank problems"
in test files where that could be done without breaking tests;
test/emacs was partially, and test/multipart was fully reverted.
</content>
</entry>
<entry>
<title>cli: pick the user's address in a group list as from address</title>
<updated>2012-01-17T01:06:34Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-01-14T21:49:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=982096d79df8d47ac62d9a74fa0a9baa9c008812'/>
<id>urn:sha1:982096d79df8d47ac62d9a74fa0a9baa9c008812</id>
<content type='text'>
Messages received to a group list were not replied to using the from
address in the list. Fix it.

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<entry>
<title>test: add known broken test for reply from address in named group list</title>
<updated>2012-01-17T01:06:34Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2012-01-14T21:49:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=93150f6467e10d075bf5cf4f27eb632a4d5d63dd'/>
<id>urn:sha1:93150f6467e10d075bf5cf4f27eb632a4d5d63dd</id>
<content type='text'>
If a message was received to the user's address that was in a named
group list, notmuch reply does not use that address for picking the
from address.

Groups lists are of the form: foo:bar@example.com,baz@example.com;

Signed-off-by: Jani Nikula &lt;jani@nikula.org&gt;
</content>
</entry>
<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>test: Update tests with removal of bcc from reply</title>
<updated>2010-10-28T00:34:31Z</updated>
<author>
<name>Jameson Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2010-10-28T00:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=04b27c0d4c7c7e181b96076e7a52e47843182428'/>
<id>urn:sha1:04b27c0d4c7c7e181b96076e7a52e47843182428</id>
<content type='text'>
Update the tests so that they no longer expect the Bcc header in the
output of "notmuch reply" now that it has been removed.

Edited-by Carl Worth: Simply applying the change to our newly
modularized test suite.
</content>
</entry>
</feed>
