email: Factor out header encoding into set_headers()
authorW. Trevor King <wking@tremily.us>
Sun, 14 Apr 2013 11:45:19 +0000 (07:45 -0400)
committerW. Trevor King <wking@tremily.us>
Sun, 14 Apr 2013 12:00:03 +0000 (08:00 -0400)
commit15f17de4f0ca2bc363e050f4b2948803dbec5392
tree6d2ab3d4c84e6b5958d1c12100630689a1cfc292
parent89fb060064c24838e292a4390040a2f9c42f2a0b
email: Factor out header encoding into set_headers()

This makes it easy to setup headers for messages besides the default
MIMEText you get from get_message().  As a side effect, it shifts the
8bit CTE header relative to the other headers, and the 8bit test
results were adjusted accordingly.

Signed-off-by: W. Trevor King <wking@tremily.us>
rss2email/email.py
test/bbc-chinese/2.expected