Needed for the latest push to my fork of pyramid_mailer as well.
Always require a `email.message.Message` object for sending. Also fix
Oops, missed some stuff for requiring `email.message.Message` objects
Add a helper function for predictable and sane encoding of message he…
This is the result of long conversations about the RFC's, the `email`
package and various bugs and quirks in both.
Add payload support to the message encoding.
Integrate message encoding support
Add coverage for binary payloads and fix handling
Tolerate some Python 2.7 and PyPy output differences.
For some reason, under Python 2.6 and 3.2, the encoding is included in
the RFC 2047 prefix as 'utf_8' but under 2.7 and 3.2 it is 'utf-8'
with a dash instead of an underscore.
assert_() is dead, long live assertTrue()