email: Encode the body when we might use 8bit encoding
authorW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 05:30:04 +0000 (00:30 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 24 Jan 2013 05:32:36 +0000 (00:32 -0500)
commit75752e094c71f2574b27f2723ea7bde12aa3f7e4
tree311bb4d866ea9c7b536218b62885f42fac732115
parent8a907f9ff29020bad0471adc5a12df2dff785789
email: Encode the body when we might use 8bit encoding

R. David Murray writes [1]:
> In 2.x that will work, and will give you the 8bit CTE at need, as
> long as you pass encoded text to MIMEText (as opposed to
> unicode...which it doesn't really handle correctly if I recall
> right).

See also, [2].

[1]: http://bugs.python.org/issue12552
     email.MIMEText overide BASE64 for utf8 charset
[2]: http://bugs.python.org/issue12553
     Add support for using a default CTE of '8bit' to MIMEText

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/email.py