Message84755
| Author |
cjw296 |
| Recipients |
aalbrecht, barry, cjw296, gagern, salty-horse, splorgdar |
| Date |
2009年03月31日.07:16:00 |
| SpamBayes Score |
9.128404e-05 |
| Marked as misclassified |
No |
| Message-id |
<1238483762.36.0.937575692605.issue1974@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It's probably worth noting that changing:
from email.mime.text import MIMEText
m = MIMEText('foo')
m['subject']='something long'
...to:
from email.header import Header
m = MIMEText('foo')
m['subject']=Header('something long')
...will do folding without the \t problem, even in Python 2.6
I guess the moral of the story is that all headers should really be
header objects. I think Barry has some ideas on that ;-) |
|