Sun, 31 Mar 2019 17:45:25 -0400
Switch to GMime for sametime.
This causes a few differences (as shown in the tests):
* MIME headers are in a slightly different order,
* MIME headers use `Camel-Case` instead of `lower-case`,
* `Content-Type` includes a `charset` parameter,
* An extra newline at the end of MIME parts was dropped,
* Filenames in attachment parts are no longer quoted,
* `Content-Disposition` and image base64 data are now wrapped,
* Unix newlines are sent consistently as DOS newlines (but correctly
parsed back to Unix).
{ /* A message with multiple lines. */ .name = "multiline", .html = "This is a test of the MIME encoding using a multiline message.\n" "This is the second line of the message.", .mime = "Content-Type: multipart/related; boundary=related_MWa2f_0aac\r\n" "Mime-Version: 1.0\r\n" "Content-Disposition: inline\r\n" "\r\n" "--related_MWa2f_0aac\r\n" "Content-Type: text/html; charset=us-ascii\r\n" "Content-Disposition: inline\r\n" "Content-Transfer-Encoding: 7bit\r\n" "\r\n" "This is a test of the MIME encoding using a multiline message.\r\n" "This is the second line of the message.\r\n" "--related_MWa2f_0aac--\r\n" }, { /* A message that ends with a newline. */ .name = "trailing-newline", .html = "This is a test of the MIME encoding using a multiline message.\n", .mime = "Content-Type: multipart/related; boundary=related_MWa2f_0aac\r\n" "Mime-Version: 1.0\r\n" "Content-Disposition: inline\r\n" "\r\n" "--related_MWa2f_0aac\r\n" "Content-Type: text/html; charset=us-ascii\r\n" "Content-Disposition: inline\r\n" "Content-Transfer-Encoding: 7bit\r\n" "\r\n" "This is a test of the MIME encoding using a multiline message.\r\n" "\r\n" "--related_MWa2f_0aac--\r\n" },