Message104416
| Author |
orsenthil |
| Recipients |
barry, bgamari, gdamjan, l0nwlf, loewis, maxua, orsenthil, r.david.murray, vstinner |
| Date |
2010年04月28日.07:29:07 |
| SpamBayes Score |
0.00044352273 |
| Marked as misclassified |
No |
| Message-id |
<1272439750.05.0.661744431878.issue1368247@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hi David,
The attached patch for this issue:
+ if isinstance(payload, unicode):
+ payload = payload.encode(msg.get_charset().output_charset or 'us-ascii')
looks fine enough to me. Are you worried about the /or 'us-ascii'/ part of this patch?
IMHO, the patch may prevent the straight forward Exception for which the issue was raised.
But on a larger scale, it is advisable to document MIMEText usage wth encoding as you mentioned. |
|