<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/multipart, branch 0.13.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.13.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.13.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2012-03-20T00:53:53Z</updated>
<entry>
<title>reply: Add a JSON reply format.</title>
<updated>2012-03-20T00:53:53Z</updated>
<author>
<name>Adam Wolfe Gordon</name>
<email>awg+notmuch@xvx.ca</email>
</author>
<published>2012-03-18T16:32:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1904b01b96c1b731afb9649e7b5bceffce901b88'/>
<id>urn:sha1:1904b01b96c1b731afb9649e7b5bceffce901b88</id>
<content type='text'>
This new JSON format for replies includes headers generated for a
reply message as well as the headers of the original message.  Using
this data, a client can intelligently create a reply. For example, the
emacs client will be able to create replies with quoted HTML parts by
parsing the HTML parts.
</content>
</entry>
<entry>
<title>test: Add broken test for the new JSON reply format.</title>
<updated>2012-03-20T00:50:47Z</updated>
<author>
<name>Adam Wolfe Gordon</name>
<email>awg+notmuch@xvx.ca</email>
</author>
<published>2012-03-18T16:32:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=30172649e8738332edeaf45aa341fe7d20333e8a'/>
<id>urn:sha1:30172649e8738332edeaf45aa341fe7d20333e8a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>show: Convert raw format to the new self-recursive style, properly support interior parts</title>
<updated>2012-03-18T12:14:22Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-03-06T18:48:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b1130bc71c02efb504ad723b56f86618fd186a67'/>
<id>urn:sha1:b1130bc71c02efb504ad723b56f86618fd186a67</id>
<content type='text'>
This is fully compatible for root and leaf parts, but now has proper
support for interior parts.  This requires some design decisions that
were guided by what I would want if I were to save a part.
Specifically:

- Leaf parts are printed without headers and with transfer decoding.
  This is what makes sense for saving attachments.  (Furthermore, the
  transfer decoding is necessary since, without the headers, the
  caller would not be able to interpret non-transfer-decoded output.)

- Message parts are printed with their message headers, but without
  enclosing part headers.  This is what makes sense for saving a
  message as a whole (which is a message part) and for saving attached
  messages.  This is symmetric for whole messages and for attached
  messages, though we special-case the whole message for performance
  reasons (and corner-case correctness reasons: given malformed input,
  GMime may not be able to reproduce it from the parsed
  representation).

- Multipart parts are printed with their headers and all child parts.
  It's not clear what the best thing to do for multipart is, but this
  was the most natural to implement and can be justified because such
  parts can't be interpreted without their headers.

As an added benefit, we can move the special-case code for part 0 into
the raw formatter.
</content>
</entry>
<entry>
<title>test: Fix malformed multipart message</title>
<updated>2012-03-18T12:14:21Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-03-06T18:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=046ab77b1045596ab225296987401fe95eb2fe13'/>
<id>urn:sha1:046ab77b1045596ab225296987401fe95eb2fe13</id>
<content type='text'>
Previously, there was only one CRLF between the terminating boundary
of the embedded multipart/alternative and the boundary of the
containing multipart.  However, according the RFC 1341, 7.2.1:

  The boundary must be followed immediately either by another CRLF and
  the header fields for the next part, or by two CRLFs, in which case
  there are no header fields for the next part

and

  The CRLF preceding the encapsulation line is considered part of the
  boundary so that it is possible to have a part that does not end
  with a CRLF (line break).

Thus, there must be *two* CRLFs between these boundaries: one that
ends the terminating boundary and one that begins the enclosing
boundary.

While GMime accepted the message we had before, it could not produce
such a message.
</content>
</entry>
<entry>
<title>test: Fix typo in test description</title>
<updated>2012-03-18T12:14:21Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-03-06T18:48:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d2e96a35a5e5eceec158dc255331b6c524810b83'/>
<id>urn:sha1:d2e96a35a5e5eceec158dc255331b6c524810b83</id>
<content type='text'>
Part 4 is a multipart, not an html part.
</content>
</entry>
<entry>
<title>test: update tests to reflect the exclude flag</title>
<updated>2012-03-02T12:35:02Z</updated>
<author>
<name>Mark Walters</name>
<email>markwalters1009@gmail.com</email>
</author>
<published>2012-03-01T22:30:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c8cf9e92d80f960bb8231b518c6967a7aab7f260'/>
<id>urn:sha1:c8cf9e92d80f960bb8231b518c6967a7aab7f260</id>
<content type='text'>
notmuch show outputs the exclude flag so many tests using notmuch
show failed. This commit adds "excluded:0" or "excluded: false" to
the expected outputs. After this commit there should be no failing
tests.
</content>
</entry>
<entry>
<title>show: Unify JSON header output for messages and message parts</title>
<updated>2012-03-01T12:28:13Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-02-20T00:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=86f89385c3bc34cd91002cc057f6a615b6ab76a9'/>
<id>urn:sha1:86f89385c3bc34cd91002cc057f6a615b6ab76a9</id>
<content type='text'>
This has three ramifications:
- Blank To and Cc headers are no longer output for messages.
- Dates are now canonicalized for messages, which means they always
  have a day of the week and GMT is printed +0000 (never -0000)
- Invalid From message headers are handled slightly differently, since
  they get parsed by GMime now instead of notmuch.
</content>
</entry>
<entry>
<title>show: Use consistent header ordering in the JSON format</title>
<updated>2012-03-01T12:28:02Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-02-20T00:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2209d7b9520000fbd6941b1e0e8521da90f443c6'/>
<id>urn:sha1:2209d7b9520000fbd6941b1e0e8521da90f443c6</id>
<content type='text'>
Previously, top-level message headers were printed as Subject, From,
To, Date, while embedded message headers were printed From, To,
Subject, Date.  This makes both cases use the former order and updates
the tests accordingly.
</content>
</entry>
<entry>
<title>show: Use consistent header ordering in the text format</title>
<updated>2012-01-23T11:41:46Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-01-23T02:31:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0bd09f844677ba361318d129bd01e21b0f7c1bd9'/>
<id>urn:sha1:0bd09f844677ba361318d129bd01e21b0f7c1bd9</id>
<content type='text'>
Previously, top-level message headers were printed as Subject, From,
To, Date, while embedded message headers were printed From, To,
Subject, Date.  This makes both cases use the former order and updates
the tests accordingly.

Strangely, the raw format also uses this function, so this also fixes
the two raw format tests affected by this change.
</content>
</entry>
<entry>
<title>test: test for absence of "Non-text part: application/pgp-*" lines in reply</title>
<updated>2011-10-06T13:13:20Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-06-08T19:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5d21d5ea0c6d2113aab9eb7f29463b09e7eacca5'/>
<id>urn:sha1:5d21d5ea0c6d2113aab9eb7f29463b09e7eacca5</id>
<content type='text'>
In reply, the quoted text does not need to mention that the original
message had "application/pgp-signed" or "application/pgp-encrypted"
parts.
</content>
</entry>
</feed>
