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

2015-10-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset eb843115e052 by Vinay Sajip in branch '3.4': Closes #25411: Improved Unicode support in SMTPHandler. https://hg.python.org/cpython/rev/eb843115e052 New changeset b99b3ddd0ac4 by Vinay Sajip in branch '3.5': Closes #25411: Merged fix from 3.4. https:

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

2015-10-17 Thread simon04
simon04 added the comment: I omitted the date header w/o intent. Basically because I couldn't quickly figure out how to set it. -- ___ Python tracker ___ ___

[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 wo

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

2015-10-15 Thread simon04
Changes by simon04 : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[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), fromaddr="f...@free.fr"