[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
New submission from simon04: This relates to the unresolved issue9208 (Python 2). SMTPHandler fails when receiving unicode strings. Example (from msg109621): import logging,logging.handlers smtpHandler = logging.handlers.SMTPHandler( mailhost=("smtp.free.fr",25),

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread R. David Murray
R. David Murray added the comment: This mostly looks good to me, Vinay. Simon: did you intentionally omit the date header, and if so why? (The smtp server normally adds one, but you can't really depend on that). Adding it would look like: msg['Date'] = email.utils.localtime() (Hmm. I

[issue25411] SMTPHandler in the logging module fails with unicode strings

2015-10-15 Thread simon04
Changes by simon04 : -- nosy: +r.david.murray ___ Python tracker ___ ___